EXIM Redirect with Smarthost - Disable smarthost/Amazon SES for a domain or email
Hi guys,
I'm using Amazon SES with my EXIM, but i want to disable Amazon SES to a specific email account (or a domain if it's easier), but to e-mail redirection.
I'm configuring Zendesk like this:
E-mail Forward: support@mycompany.com --> support@mycompany.zendesk.com.
When I do that, Amazon SES can't recognize e-mails from "zendesk.com" and block it.
So I tried to disable Amazon SES to "mycompainy.com" and I could do that when I try to use Webmail/Outlook to send e-mails
If I authenticate with "support@mycompany.com" and try to send an e-mail, it don't use Amazon SES and send using my own server IP.
But, I don't know why, when I try to send an e-mail to "support@mycompany.com", and EXIM tries to redirect to "support@mycompany.zendesk.com", this configuration don't work and EXIM tries again to send using Amazon SES.
This is my original setup:
PREROUTES
# Amazon SES
send_via_ses:
driver = manualroute
domains = ! +local_domains
transport = ses_smtp
route_list = * email-smtp.sa-east-1.amazonaws.com
What I've tried to use is:
senders = !support@mycompany.com
OR
remove from route_list "mycompany.com".
All this works when I use support@mycompany.com with auth on webmail/outlook and the e-mail is sent without Amazon SES.
But when I try to use cpanel redirection/forwarding, this conditions doesn't work.
So, how can I change this PREROUTES to filter "forwareded" emails also?
-
Hi, I've made it work. condition = ${if match_domain{$sender_address_domain}{+local_domains}} thanks! 0 -
I'm glad you found a good solution! 0 -
Hi friends, I'm configuring Amazon SES as Smarthost on my WHM
How can i do to avoid local mail like cpanel, csf and other server mail notifications be delivered using amazon ses?Thanks in advance
0 -
samuelmf - It's best to start a new thread for your issues as this one is 2 years old.
We don't have a supported way to do this through the cPanel interface. I would recommend checking out the details here for a conditional smarthost configuration to see if that will fit your needs:
https://support.cpanel.net/hc/en-us/community/posts/19157666390807-Smart-Host-to-Selected-Domains
0
Please sign in to leave a comment.
Comments
4 comments