PROBLEM
I have created a smarthost but I want to add more security with SMTP Auth
ENVIRONMENT
- On-Premise Server + WebMail Installations: Version 6.0 > Current Version
- Webmail Only Installations: Version 6.0 > Current Version
CAUSE
Smarthost requires more security
RESOLUTION
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 client_send = ": richard@inbox.com : password"
10.) Replace "richard@inbox.com" with SMTP Auth username. "password" with your SMTP Auth password.
11.) Restart AtMail.
% /etc/init.d/atmailserver restart
Comments