Amazon SES opens SRS with error message 501 Invalid MAIL FROM address provided
ses_smtp:
driver = smtp
port = 587
hosts_require_auth = *
hosts_require_tls = *
.ifdef SRSENABLED
ses_forwarded_smtp:
driver = smtp
hosts_require_auth = *
hosts_require_tls = *
max_rcpt = 1
return_path = ${srs_encode {SRS_SECRET} {$return_path} {$original_domain}}
.endif
In the exim advanced configuration manager, Amazon SES is used as the global domain to send and forward emails. SRS rewriting the sender has been enabled, but when the automatic forwarding of emails fails and needs to be returned to the original sender, an error 501 Invalid MAIL FROM address provided is reported.
return_path = ${srs_encode {SRS_SECRET} {$return_path} {$original_domain}} So how should this configuration be optimized and modified?
2024-07-18 03:08:48 1sUA17-00000001m98-2ZiX ** support@akasohelp.zendesk.com (cs@akasotech.com) <cs@akasotech.com> R=send_via_ses T=ses_forwarded_smtp H=email-smtp.us-east-1.amazonaws.com [54.157.237.25] X=TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no: SMTP error from remote mail server after MAIL FROM:<SRS0=3a67=or=gmail.com=amberrobinson99@akasotech.com> SIZE=49683: 550 UA18shYdpRn6WUA19sUYWt - <srs0=3a67=or=gmail.com=amberrobinson99@akasotech.com> sender rejected AUP#CDRBL 2024-07-18 03:08:48 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1sUA17-00000001m98-2ZiX 2024-07-18 03:08:48 1sUA1A-00000001m9Q-2Pqn <= <> R=1sUA17-00000001m98-2ZiX U=mailnull P=local S=50371 T="Mail delivery failed: returning message to sender" for amberrobinson99@gmail.com 2024-07-18 03:08:48 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1sUA1A-00000001m9Q-2Pqn 2024-07-18 03:08:48 1sUA17-00000001m98-2ZiX Completed 2024-07-18 03:08:49 1sUA1A-00000001m9Q-2Pqn ** amberrobinson99@gmail.com R=send_via_ses T=ses_smtp H=email-smtp.us-east-1.amazonaws.com [54.157.237.25] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes: SMTP error from remote mail server after MAIL FROM:<>: 501 Invalid MAIL FROM address provided 2024-07-18 03:08:49 1sUA1A-00000001m9Q-2Pqn Frozen (delivery error message)
-
Hey there! Since Amazon is handling those emails it would be best to speak with them about this issue so they can recommend the correct settings for their environment.
1 -
I think this should be achievable through EXIM custom configuration, the problem is that enabling SRS prevents the email from being returned to the original sender.
0
Please sign in to leave a comment.
Comments
2 comments