Sorry for the latter, but this may help some people in the future.
If you want to configure JAMES to send emails to an external network, you must edit the conf.xml file in $ {JAMES_DIR} / apps / james / SAR-INF.
Compile this line to determine the SMTP relay server, if necessary, through the gateway:
<processor name="transport">
<mailet match="All" class="RemoteDelivery">
...
<gateway> smtp.gmail.com </gateway>
<gatewayPort>25</gatewayPort>
</mailet>
</processor>
An example of using the gmail relay server:
- POP Server: pop.gmail.com( POP GMail)
- SMTP-: smtp.gmail.com
- IMAP: imap.gmail.com
: gmail , gatewayus gatewayPassword:
<gatewayusername>login</gatewayusername>
<gatewayPassword>pass</gatewayPassword>
. http://mail.google.com/support/bin/answer.py?answer=10350