Most settings are stored in <FMESever>/Utilities/smtprelay/james/apps/james/SAR-INF/config.xml. For a complete reference on configurations, see http://james.apache.org/.
The following is the configuration section most relevant to the Email publisher. For a description of the parameter tags, see the Example Email Publication
<mailet match="All" class="FMENotificationMailet">
<!-- Relayer server path -->
<relayServerPath>D:/Apps/FMEServer/Server</relayServerPath>
<!-- Email publisher name -->
<emailPublisherName>email</emailPublisherName>
<!-- Directory where email attachments should be stored. If "system" specified, system temp directory is used. -->
<emailAttachmentDir>system</emailAttachmentDir>
<!-- This section defines the keywords used by the notification
messages sent from this mailet -->
<emailSender>email_relay_from</emailSender>
<emailRecipients>email_relay_to</emailRecipients>
<emailSubject>email_relay_subject</emailSubject>
<emailContent>email_relay_content</emailContent>
<emailSentDate>email_relay_sent</emailSentDate>
<emailReceivedDate>email_relay_received</emailReceivedDate>
<emailAttachment>email_relay_attachment</emailAttachment>
</mailet>
Attachment Directory
Specifies the location where the attachment files of incoming emails are stored. By default, system is specified, meaning that the system temp directory is used. This value can be changed by modifying the <emailAttachmentDir> XML tag.
For example:
<emailAttachmentDir>D:/temp/myattachments</emailAttachmentDir>
Deploying with a public DNS
The public DNS name for email addresses (host name after @) is for display only and is used by the Protocol Service to show expected email addresses. It does not affect the functionality of the James Server.
If you are deploying a production server to send and receive emails over the Internet, you must change the server name from localhost to a public DNS name by changing the <servername> XML tag value.
For example, if the public DNS is mycompany.com then change:
<servername>localhost</servername>
to
<servername>mycompany.com</servername>
This example allows FME Server to receive emails to <username>@mycompany.com
Configuring secure SMTP and POP3 servers with SSL/TLS
Secure SMTP and POP3 operate through ports 465 and 995, and are disabled by default. To enable them, follow these steps:
<FMESever>/Utilities/smtprelay/james/apps/james/conf
<factory name="ssl" class="org.apache.avalon.cornerstone.blocks.sockets.TLSServerSocketFactory">
<ssl-factory>
<keystore>
<file>conf/keystore</file> <!-- replace this with the relative path of your certificate keystore -->
<password>secret</password> <!-- replace this with your keystore password -->
<key-password>keysecret</key-password> <!-- replace this with your priviate key password -->
<type>JKS</type>
<protocol>TLS</protocol>
<algorithm>SunX509</algorithm>
<authenticate-client>false</authenticate-client>
</keystore>
</ssl-factory>
</factory>
POP3 and SMTP ports
The ports listed above are standard for POP3 and SMTP, and cannot be changed if your server wants to communicate with other email servers such as Gmail. We recommend turning off the non-secure SMTP and POP3 ports once you have servers working over SSL. For detailed instructions, see http://wiki.apache.org/james/UsingSSL.