在我的服务器上,当我尝试向多个收件人发送邮件时,我总是收到“452 4.5.3收件人太多”错误。即使只是将邮件发送给2-3个收件人,也会发生这种情况。我在Amazon Linux的一个实例上使用sendmail作为我的SMTP服务器。
命令:
echo test | mail -s test userA@company.com UserB@company.com
的/ var /日志/ 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重试延迟,但这显然不是首选解决方案。
答案 0 :(得分:0)
不是您的服务器或sendmail存在问题,而是接收服务器说“收件人太多”。#34;
在我们将生产服务器周末迁移到AWS之后,我今天遇到了这个问题,也是由mail.protection.outlook.com托管的域。要检查两件事:
AWS还涉及各种ISP的SMTP白名单,因此填写该表单对于让您的服务器能够发送SMTP邮件尤为重要。