SOLVED EXIM Redirect with Smarthost - Disable smarthost/Amazon SES for a domain or email

rccruz

Registered
Apr 20, 2022
2
0
1
Brazil
cPanel Access Level
Root Administrator
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: [email protected] --> [email protected].

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 "[email protected]" 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 "[email protected]", and EXIM tries to redirect to "[email protected]", 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 = ![email protected]

OR
remove from route_list "mycompany.com".

All this works when I use [email protected] 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?
 
Last edited by a moderator: