我正在尝试使用 Postfix 通过 Amazon SES 在具有 Internet 连接的本地服务器上从我的应用程序发送电子邮件。我在 SES 沙盒上有一个经过验证的“收件人”电子邮件地址。但是,每当我尝试发送邮件时,它都无法发送电子邮件,以下是/var/log/mail.log的内容:
Jun 2 11:07:07 postfix/pickup[1924]: 8B18E680C77: uid=1000 from=<alerts@zzzz.com>
Jun 2 11:07:07 postfix/cleanup[2488]: 8B18E680C77: message-id=<20170602053707.8B18E680C77@zzzz.com>
Jun 2 11:07:07 postfix/qmgr[11946]: 8B18E680C77: from=<alerts@zzzz.com>, size=354, nrcpt=1 (queue active)
Jun 2 11:07:07 postfix/local[2490]: 8B18E680C77: to=<me@zzzz.com>, relay=local, delay=0.03, delays=0.02/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "me")
Jun 2 11:07:07 postfix/cleanup[2488]: 90CE9680DA2: message-id=<20170602053707.90CE9680DA2@zzzz.com>
Jun 2 11:07:07 postfix/bounce[2491]: 8B18E680C77: sender non-delivery notification: 90CE9680DA2
Jun 2 11:07:07 postfix/qmgr[11946]: 90CE9680DA2: from=<>, size=2066, nrcpt=1 (queue active)
Jun 2 11:07:07 postfix/qmgr[11946]: 8B18E680C77: removed
Jun 2 11:07:07 postfix/local[2490]: 90CE9680DA2: to=<alerts@zzzz.com>, relay=local, delay=0.01, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "alerts")
Jun 2 11:07:07 postfix/qmgr[11946]: 90CE9680DA2: removed
以下是我的postfix配置文件/etc/postfix/main.cf
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = zzzz.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = zzzz.com
relayhost = [email-smtp.us-east-1.amazonaws.com]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = all
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
我遵循了 AWS 指南中给出的所有步骤,但这似乎不起作用,如果有人可以帮助我解决这个问题。
干杯!