help centre
For more info visit

How can we help?

Search our knowledge base for answers to
common questions and latest updates.

My activities New request


Adding a smarthost - Divert non local messages to another SMTP

Nathan Salt -


Smarthost Servers


  • On-Premise Server + WebMail Installations: Version 6.0 > Current Version
  • Webmail Only Installations: Version 6.0 > Current Version


Rerouting required for specific servers


 Messages to 'non' local accounts will be routed via the remote_smtp router in the Exim configure file /usr/local/atmail/mailserver/configure.The default rule can be modified to relay all outgoing messages via another SMTP-server ( rather then the localhost ) . This is handy for relaying messages to a remote SMTP server for processing, for example a dedicated Antivirus or Anti-Spam appliance/server.

To enable edit the Exim configure file and replace:

driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = :

With the following:

# This router routes addresses that are not in local domains by doing a DNS
# lookup on the domain name.
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
route_list = *
ignore_target_hosts = :

Where is the name of your external smtp server. The IP address of the Atmail server must have relay-access via the external SMTP server to send outgoing messages.

Save changes and restart Atmail.

/etc/init.d/atmailserver restart
Have more questions? Submit a request


Contact our support team

+61 (7) 5357 6605