大网数据广告活动
服务器运维问答

exim configuration and AWS SES

· 52CE 我爱测

I am trying to configure exim on a CentOS instance in EC2 to use AWS SES as a relay SMTP server. I configure it using this guide. The SES account is currently in sandbox mode, and I have verified two addresses, the sender and the…

问题原文

原帖链接 · Mark Kemel · CC BY-SA 4.0

I am trying to configure exim on a CentOS instance in EC2 to use AWS SES as a relay SMTP server. I configure it using this guide. The SES account is currently in sandbox mode, and I have verified two addresses, the sender and the recipient.

When trying to send a test mail as suggested in the guide, I get the following error:

SMTP error from remote mail server after end of data: 554 Message rejected: Email address is not verified. The following identities failed the check in region EU-CENTRAL-1: root@hostname

Also, in the output I see the following line:

SMTP>> MAIL FROM:root@hostname SIZE=1369 AUTH=root@hostname

From which I assume that although I have set "From" to be a verified address, exim still uses my username@hostname as Mail From, which of course is not verified in SES. Could not understand from exim documentation how to change it.

Any ideas how to make it work while staying in the sandbox mode in SES?

已采纳解答

原帖链接 · Mark Kemel · CC BY-SA 4.0

Found the answer here

Added the following line to exim configuration file:

begin rewrite
^root@hostname [email omitted] SFfrs

And then the root@hostname is replaced with [email omitted] as expected

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-09-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。