Smarthost settings for Exim in ispmanager 6
By default, the Exim configuration in ispmanager 6 doesn't contain any standard settings for connecting to smarthost. To connect to smarthost in this situation, edit the configuration file.
Add the following lines to the very beginning of the configuration file:
UPEX4CmacrosUPEX4C = 1
# ROUTER_SMARTHOST=MAIL.HOSTNAME.FOR.CENTRAL.SERVER.EXAMPLEThe second line must be uncommented if the address of an existing smarthost server is specified.
At the beginning of the begin routers section, add the following lines, replacing the dnslookup: block:
.ifdef ROUTER_SMARTHOST
smarthost:
driver = manualroute
domains = !+local_domains
transport = smarthost_smtp
route_data = ROUTER_SMARTHOST
ignore_target_hosts = <; 0.0.0.0 ; 127.0.0.0/8 ; ::1
no_more
.else
dnslookup:
driver = dnslookup
domains = !+dummy_domains : !+local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
self = pass
no_more
.endif If you previously modified the parameters in the dnslookup: block, save them for the new block.
At the beginning of the begin transports section, add the following lines:
smarthost_smtp:
driver = smtp
message_size_limit = ${if > {$max_received_linelength}{998} {1}{0}}
multi_domain
.ifdef _HAVE_TLS
hosts_require_tls = *
tls_verify_hosts = *
tls_try_verify_hosts = *
tls_sni = ROUTER_SMARTHOST
.ifdef _HAVE_OPENSSL
tls_require_ciphers = HIGH:!aNULL:@STRENGTH
.endif
.ifdef _HAVE_GNUTLS
tls_require_ciphers = SECURE192:-VERS-SSL3.0:-VERS-TLS1.0:-VERS-TLS1.1
.endif
.endif
.ifdef _HAVE_PRDR
hosts_try_prdr = *
.endif After making the changes, begin configuring a specific smarthost for Exim.