To use AWS SES as SMTP for all non-local mail I have this configured in the PREROUTERS section of the EXIM config file:
send_via_ses:
driver = manualroute
domains = ! +local_domains
transport = ses_smtp
route_list = * email-smtp.us-west-2.amazonaws.com;
I would like to also restrict it from sending forwards set up in accounts on the server to SES. So in the same way that domains = ! +local_domains prevents local mail from routing to SES, I need a conditional statement that would also prevent all forwards from being sent through SES. But I can't find an answer anywhere-probably because I don't know what I'm looking for.
Any help would be appreciated. Thanks.
send_via_ses:
driver = manualroute
domains = ! +local_domains
transport = ses_smtp
route_list = * email-smtp.us-west-2.amazonaws.com;
I would like to also restrict it from sending forwards set up in accounts on the server to SES. So in the same way that domains = ! +local_domains prevents local mail from routing to SES, I need a conditional statement that would also prevent all forwards from being sent through SES. But I can't find an answer anywhere-probably because I don't know what I'm looking for.
Any help would be appreciated. Thanks.