Configuring James for Authentication SMTP is a multi-step process. It requires several adjustments of
the config.xml. To enable SMTP AUTH, do the following:
First, as mentioned above, SMTP AUTH requires that James be able to distinguish between mail intended
for local delivery and mail intended for remote delivery. James makes this determination by matching the
domain to which the mail was sent against the <servernames> element of the James configuration block. Any
local domains should be explicitly listed as <servername> elements in this section.
Second, James is configured out of the box so as to not serve as an open relay for spammers. This is done
by restricting the IP addresses from which mail will be accepted using the RemoteAddrNotInNetwork mailet. This
restriction must be lifted before users can send from arbitrary clients. To do this, comment out or remove the
mailet tag containing the class attribute "RemoteAddrNotInNetwork". This tag can be found in the spoolmanager
configuration block, in the root processor configuration.
Third, set the authRequired element of the smtpserver configuration block to "true".
Fourth, if you wish to ensure that authenticated users can only send email from their own account, you may
optionally set the verifyIdentity element of the smtpserver configuration block to "true".
Fifth, restart James. This will pull in all of your configuration changes.