We utilize MailChannels for outbound scanning. I have a few domains that are excluded from being relayed through MailChannels. Mail sent from the server itself (PHP scripts, local mail users) ends up being routed correctly (it avoids MailChannels and is sent directly to the destination).
However, these domains have forwarders setup (for example, [email protected] forwards to [email protected]). The forwarders are still being routed through MailChannels.
The forwarders seem to be using the 'virtual_aliases_nostar' router in exim, but I am not sure how exactly to force the mailchannels router to check the forwarding address/domain and exclude messages based on that.
Thanks for the help.
However, these domains have forwarders setup (for example, [email protected] forwards to [email protected]). The forwarders are still being routed through MailChannels.
The forwarders seem to be using the 'virtual_aliases_nostar' router in exim, but I am not sure how exactly to force the mailchannels router to check the forwarding address/domain and exclude messages based on that.
Code:
#MAILCHANNELS_ROUTESTART
send_via_mailchannels:
driver = manualroute
domains = ! +local_domains
senders = !*@excluded-domain1.com : !*@server.hostname.com : !*@excluded-domain2.com
transport = mailchannels_smtp
hosts_randomize = true
route_list = * smtp.mailchannels.net::587:smtp1.mailchannels.net::587 randomize byname
host_find_failed = defer
no_more
#MAILCHANNELS_ROUTESTOP