Skip to main content

Forwarders not being excluded from MailChannels

Comments

2 comments

  • mooseontheloose
    Heard back from MailChannels, apparently you have to go the smart hosts route and include ALL domains on the server in a static_route file that you want relayed. There isn't a way to just exclude domains. [quote] Hi, Thank you for contacting MailChannels Support. If you want to exclude forwarding emails from being routed through MailChannels. Kindly modify the "send_via_mailchannels:" configuration under ROUTERSTART/POSTMAILCOUNT section. send_via_mailchannels: driver = manualroute domains = !+local_domains condition = "${if eq{${lookup{$sender_address_domain}partial-lsearch{/etc/static_route}{$value}}}{}{false}{true}}" headers_add = "${perl{mailtrapheaders}}" transport = mailchannels_smtp route_list = !+local_domains "${lookup{$sender_address_domain}partial-lsearch{/etc/static_route}}" Create the file "/etc/static_route" and set the ownership and permission as follows touch /etc/static_route chown root:mail /etc/static_route chmod 660 /etc/static_route Then add the list of domains for which mails should be relayed through MailChannels in the file "/etc/static_route" in the following format smtp.mailchannels.net smtp.mailchannels.net Finally restart the exim service and verify the new settings by sending test mails from your end. Note : Please note that this is a workaround to exclude the forwarded mails. In this case you should add all the domains that needs to be relayed through MailChannels in the "/etc/static_route" file. Regards, Maria jose MailChannels Support
    0
  • cPanelLauren
    I'm glad you found the answer and thanks for updating here with that.
    0

Please sign in to leave a comment.