amazon ses for a single cpanel domain

Neozac

Member
Feb 4, 2021
12
2
3
mexico
cPanel Access Level
Root Administrator
Hello!
I am currently trying to incorporate amazon SES to my cpanel, this is already configured and emails are already coming out from a domain (account) of my cpanel.

I have 10 accounts (domains) in my cpanel, I only want a single domain to use amazon SES for sending emails, how can I do? I want to prevent the other domains from using amazon SES. how can i do it?

As a further comment, follow these instructions to embed amazon SES:

but this applies to all cpanel accounts. I only want it to apply to a single account, what should I do? someone who can help me?

regards
 

SS-Maddy

Well-Known Member
Mar 28, 2009
130
16
68
cPanel Access Level
Root Administrator
@Neozac,

Did you try adding a line

condition = "${if eq {$sender_address_domain}{<replace_your_domain_here>}{true}{false}}"

after the domains = ! +local_domains ? That should work
 
  • Like
Reactions: cPRex

Neozac

Member
Feb 4, 2021
12
2
3
mexico
cPanel Access Level
Root Administrator
Thank you very much SS-Maddy for your contribution.

I tell you that by inquiring I have put in the
Section: PREROUTERS
I have added these lines:

send_via_ses:
driver = manualroute
domains =! + local_domains
senders = *@DOMAIN1.com : *@DOMAIN2.com
transport = ses_smtp
route_list = * email-smtp.us-east-1.amazonaws.com;

and so I allow one or more domains to use the amazon ses configuration.