Configure Exim /
Directadmin to use a Smarthost
- Edit
your Exim configuration file (e.g. /etc/exim.conf).
- Add
in the routers section (after begin
routers):
spamgateway_smarthost_router:
driver = manualroute
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
condition = "${perl{check_limits}}"
transport = spamgateway_smarthost_transport
route_list = $domain mxpool1.spamgateway.comodo.com::587 (for EU based CSEG server)
or $domain mxpool1.us.spamgateway.comodo.com::587 (for US based CSEG server) no_more
- This replaces the existing
"lookuphost:" router which should be commented.
- Add in the transports section
(after begin transports):
spamgateway_smarthost_transport:
driver = smtp
hosts_require_tls = *