【发布时间】:2016-02-16 10:47:34
【问题描述】:
在我的服务器上,当我尝试向多个收件人发送邮件时,我总是收到“452 4.5.3 Too many recipients”错误。即使只是将邮件发送给 2-3 个收件人,也会发生这种情况。我在 Amazon Linux 实例上使用 sendmail 作为我的 SMTP 服务器。
命令:
echo test | mail -s test userA@company.com UserB@company.com
/var/log/maillog:
sendmail[2413]: starting daemon (8.14.4): SMTP+queueing@01:00:00
sm-msp-queue[2421]: starting daemon (8.14.4): queueing@01:00:00
sendmail[2603]: u1GAHQjS002603: from=ec2-user, size=257, class=0, nrcpts=2, msgid=<201602161017.u1GAHQjS002603@ip>, relay=root@localhost
sendmail[2604]: u1GAHQ1Z002604: from=<ec2-user@ip>, size=580, class=0, nrcpts=2, msgid=<201602161017.u1GAHQjS002603@ip>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
sendmail[2603]: u1GAHQjS002603: to=userA@company.com,userB@company.com, ctladdr=ec2-user (500/500), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=60257, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (u1GAHQ1Z002604 Message accepted for delivery)
sendmail[2606]: STARTTLS=client, relay=company-com.mail.protection.outlook.com., version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES256-SHA384, bits=256/256
sendmail[2606]: u1GAHQ1Z002604: to=<userA@company.com>, ctladdr=<ec2-user@ip> (500/500), delay=00:00:04, xdelay=00:00:03, mailer=esmtp, pri=150580, relay=company-com.mail...ction.outlook.com. [207.46.163.215], **dsn=4.5.3, stat=Deferred: 452 4.5.3 Too many recipients (AS780090)**
sendmail[2606]: u1GAHQ1Z002604: to=<userB@company.com>, ctladdr=<ec2-user@ipl> (500/500), delay=00:00:05, xdelay=00:00:04, mailer=esmtp, pri=150580, relay=company-com.mail...ction.outlook.com. [207.46.163.215], dsn=2.0.0, stat=Sent (<201602161017.u1GAHQjS002603@ipl> [InternalId=341492...PR0801MB1511.namprd08.prod.outlook.com] 6780 bytes in 0.435, 15.205 KB/sec Queued mail for delivery)
我尝试在 sendmail.mc 中添加以下行,然后发出 make 命令并重新启动 sendmail 服务,但它们似乎都没有起作用:
define(`confMAX_RCPTS_PER_MESSAGE', `10')dnl
define(`SMTP_MAILER_MAXMSG',`20')
define(`SMTP_MAILER_MAXRCPTS',`50')
我没有配置其他任何东西。我错过了什么吗?这是 sendmail 的默认行为吗?我想出的唯一解决方法是减少 sendmail 重试延迟,但这显然不是首选解决方案。
【问题讨论】:
标签: linux email smtp amazon sendmail