This page details the configuration for Incoming SMTP
The outgoing (remote delivery) is implemented in the RemoteDelivery mailets. The configuration details for outgoing SMTP traffic can be read on this page (section RemoteDelivery) and shoud be update in the mailetcontainer.
Consult smtpserver-template.xml in GIT to get some examples and hints.
The SMTP service is controlled by a configuration block in the smptserver.xml. The smtpserver tag defines the boundaries of the configuration block. It encloses all the relevant configuration for the SMTP server. The behavior of the SMTP service is controlled by the attributes and children of this tag.
This tag has an optional boolean attribute - enabled - that defines whether the service is active or not. The value defaults to "true" if not present.
The standard children of the smtpserver tag are:
Authenticated SMTP is a method of securing your SMTP server. With SMTP AUTH enabled senders who wish to relay mail through the SMTP server (that is, send mail that is eventually to be delivered to another SMTP server) must authenticate themselves to Apache James Server before sending their message. Mail that is to be delivered locally does not require authentication. This method ensures that spammers cannot use your SMTP server to send unauthorized mail, while still enabling users who may not have fixed IP addresses to send their messages.
Mail servers that allow spammers to send unauthorized email are known as open relays. So SMTP AUTH is a mechanism for ensuring that your server is not an open relay .
At this time Apache James Server only supports simple user name / password authentication.
Configuring Apache James Server for Authentication SMTP is a multi-step process. It requires several adjustments of the smtpserver.xml. To enable SMTP AUTH, do the following:
Finally, you need to verify that your configuration was done correctly. This step is important and should not be skipped.
Verify that you have not inadvertantly configured your server as an open relay. This is most easily accomplished by using the service provided at abuse.net. abuse.net will check your mail server and inform you if it is an open relay.
It is extremely important that your server not be configured as an open relay. Aside from potential costs associated with usage by spammers, connections from servers that are determined to be open relays are routinely rejected by SMTP servers. This can severely impede the ability of your mail server to send mail.
Of course it is also necessary to confirm that users and log in and send mail through your server. This can be accomplished using any standard mail client (i.e. Thunderbird, Outlook, Eudora, Evolution).
Consult lmtpserver-template.xml in GIT to get some examples and hints.
The configuration is the same of for SMTP.
By default, it is desactivated. You can activate it with SMTP and bind for example on port 24.