【问题标题】:sendmail 452 4.5.3 Too many recipientssendmail 452 4.5.3 收件人太多
【发布时间】: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


    【解决方案1】:

    问题不是你的服务器或发送邮件,而是接收服务器说“收件人太多”。

    在我们周末将生产服务器迁移到 AWS 之后,我今天遇到了这个问题,同样是由 mail.protection.outlook.com 托管的域。要检查两件事:

    1. 您的域中是否有 SPF 记录(TXT 记录)? SPF 记录中是否允许您的 linux 邮件服务器的弹性 IP?
    2. 您的 linux 邮件服务器的弹性 IP 是否有 PTR 记录(反向 DNS)?通常,您会要求您的 Co-Lo 为您解决此问题。由于您使用 AWS 进行托管,因此您需要按照以下 AWS 博客文章填写“请求删除电子邮件发送限制”表单:Configurable Reverse DNS for Amazon EC2’s Elastic IP Addresses

    AWS 还涉及到各种 ISP 的 SMTP 白名单,因此填写该表格对于让您的服务器能够发送 SMTP 邮件尤为重要。

    【讨论】:

      猜你喜欢
      • 2021-06-09
      • 2010-11-23
      • 2018-06-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多