linux 发送邮件452 4.5.3收件人太多

r55awzrz  于 2023-03-07  发布在  Linux
关注(0)|答案(1)|浏览(484)

在我的服务器上,当我尝试发送邮件给多个收件人时,总是收到"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/日志/邮件日志:

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)

我试过在www.example.com中添加以下代码行,然后发出make命令并重新启动sendmail服务,但似乎没有一个能奏效:sendmail.mc then issuing the make command and restarting the sendmail service but none of them seem to be doing the trick:

define(`confMAX_RCPTS_PER_MESSAGE', `10')dnl
define(`SMTP_MAILER_MAXMSG',`20')
define(`SMTP_MAILER_MAXRCPTS',`50')

我还没有配置任何其他的东西。我错过了什么吗?这是默认的行为发送邮件?唯一的工作,我已经想出要做的是减少发送邮件重试延迟,但这显然不是首选的解决方案。

jtw3ybtb

jtw3ybtb1#

这不是你的服务器或sendmail的问题,这是接收服务器说:“太多的收件人。”
我今天遇到了这个问题,也是在www.example.com托管的域上mail.protection.outlook.com,在我们周末将生产服务器迁移到AWS之后。
1.您的域中是否有SPF记录(TXT记录)?SPF记录中是否允许您的Linux邮件服务器的弹性IP?
1.您的linux邮件服务器的Elastic IP是否有PTR记录(反向DNS)?通常您会要求您的Co-Lo为您修复此问题。由于您使用AWS托管,您需要按照以下AWS博客文章填写“请求删除电子邮件发送限制”表格:Configurable Reverse DNS for Amazon EC2’s Elastic IP Addresses
AWS还参与了各种ISP的SMTP白色名单,因此填写该表单对于让您的服务器能够发送SMTP邮件尤为重要。

相关问题