Search K
Appearance
Appearance
To set up outbound email sending through remote mail server, fill in example values and copy generated snippets to their respective files. If Remote mail server requires custom port, it could be added by appending ::PORT to the hostname (e.g. mail.example.com::587)
Remote server hostname:
Remote server requires authentication:
/etc/exim.routers.pre.conf
smart_route:
driver = manualroute
ignore_target_hosts = 127.0.0.0/8
condition = ${if or { \
{bool{FORCED_MX_DNS_CHECK}} \
{!match_domain{$domain}{+local_domains}} \
}}
transport = ${if eq{$domain}{$original_domain} \
{ remote_smtp } \
{ remote_smtp_forward_transport } \
}
self = pass
route_list = * smtp.example.com
no_moreFor changes to take effect, exim will need to be restarted using
systemctl restart exim