Using SMTP Auth with the Exim Smarthost
Creating smarthosts with Exim is easy, but you may want to enable SMTP authentication during transactions for additional security. Just go through the following steps:
1.) Open up your /usr/local/atmail/mailserver/configure file, and find:
dnslookup: driver = dnslookup domains = ! +local_domains transport = remote_smtp ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 no_more
2.) Comment out this line so it looks like:
#dnslookup: # driver = dnslookup # domains = ! +local_domains # transport = remote_smtp # ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 # no_more
3.) Add this line below:
divertnonlocal: driver = manualroute domains = ! +local_domains transport = remote_smtp route_list = * 192.168.0.6 ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 no_more
4.) Replace "192.168.0.6" with your SMTP relay host (your smarthost destination).
5.) Find this line afterwards:
remote_smtp: driver = smtp
6.) Change it to:
remote_smtp: driver = smtp hosts_require_auth = 192.168.0.6 hosts_try_auth = 192.168.0.6
7.) Change "192.168.0.6" to your smarthost server.
8.) At the bottom of the file, find this line:
begin authenticators
9.) Below this, add:
login:
driver = plaintext
public_name = LOGIN
(more...)

