sendmail 发送身份验证警告

sendmail 发送身份验证警告

亲爱的,
我从 Centos7 中的 postfix/pip 收到了成功的消息(通过 spamassassin 服务传送),但它没有向用户发送电子邮件,并带有 sendmail 身份验证警告日志。您可以在下面找到日志。

mail postfix/pipe[33055]: 586D85F1EE: to=<[email protected]>, relay=spamassassin, delay=103, delays=0.06/0.02/0/103, dsn=2.0.0, status=sent (delivered via spamassassin service)
mail postfix/qmgr[1778]: 586D85F1EE: removed
mail postfix/smtpd[46730]: disconnect from unknown[127.0.0.1]
mail sendmail[46763]: w617bxpb046763: Authentication-Warning: servername.com: spamfilter set sender to MAILER-DAEMON using -f
mail sendmail[46763]: w617bxpb046763: from=MAILER-DAEMON, size=15920, class=0, nrcpts=1, msgid=<[email protected]>, relay=spamfilter@localhost
mail sendmail[46763]: w617bxpb046763: SYSERR(spamfilter): Too many hops 27 (25 max): from MAILER-DAEMON via localhost, to [email protected]
mail sendmail[46763]: w617bxpb046763: w617bxpc046763: DSN: Too many hops 27 (25 max): from MAILER-DAEMON via localhost, to [email protected]
mail postfix/smtpd[53780]: connect from unknown[127.0.0.1]
mail postfix/smtpd[53780]: Anonymous TLS connection established from unknown[127.0.0.1]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
mail sendmail[46763]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES256-GCM-SHA384, bits=256/256
mail postfix/smtpd[53780]: NOQUEUE: reject: RCPT from unknown[127.0.0.1]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table; from=<> to=<[email protected]> proto=ESMTP helo=<servername.com>
mail sendmail[46763]: w617bxpc046763: to=MAILER-DAEMON, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=46944, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
mail sendmail[46763]: w617bxpc046763: w617bxpd046763: return to sender: User unknown
mail postfix/smtpd[53780]: NOQUEUE: reject: RCPT from unknown[127.0.0.1]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table; from=<> to=<[email protected]> proto=ESMTP helo=<servername.com>
mail sendmail[46763]: w617bxpd046763: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=47968, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
mail sendmail[46763]: w617bxpc046763: Losing ./qfw617bxpc046763: save    mail panic
mail sendmail[46763]: w617bxpc046763: SYSERR(spamfilter): savemail: cannot save rejected e    mail anywhere
mail postfix/smtpd[53780]: disconnect from unknown[127.0.0.1]
mail postfix/pipe[33055]: 8C1105F1EF: to=<[email protected]>, relay=spamassassin, delay=104, delays=0.3/0.03/0/103, dsn=5.3.0, status=bounced (service unavailable)
mail postfix/qmgr[1778]: 8C1105F1EF: removed

什么是身份验证警告?为什么会出现这样的信息Recipient address rejected: User unknown in virtual mailbox table

更新

我将用户添加到 sendmail.mc 文件,但问题并未得到解决。SASL LOGIN authentication failed: Invalid authentication mechanism日志中也有?这是什么意思?我可以在哪里修复身份验证机制。

mail postfix/smtpd[4579]: connect from unknown[178.141.251.45]
mail postfix/smtpd[4579]: warning: unknown[178.141.251.45]: SASL LOGIN authentication failed: Invalid authentication mechanism
mail postfix/smtpd[4579]: disconnect from unknown[178.141.251.45]
mail sendmail[4593]: w635Z73D004593: Authentication-Warning: servername.com: spamfilter set sender to MAILER-DAEMON using -f
mail sendmail[4593]: w635Z73D004593: from=MAILER-DAEMON, size=15920, class=0, nrcpts=1, msgid=<[email protected]>, relay=spamfilter@localhost
mail sendmail[4593]: w635Z73D004593: SYSERR(spamfilter): Too many hops 27 (25 max): from MAILER-DAEMON via localhost, to [email protected]
mail sendmail[4593]: w635Z73D004593: w635Z73E004593: DSN: Too many hops 27 (25 max): from MAILER-DAEMON via localhost, to [email protected]
mail postfix/smtpd[4579]: connect from unknown[127.0.0.1]
mail postfix/smtpd[4579]: Anonymous TLS connection established from unknown[127.0.0.1]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
mail sendmail[4593]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES256-GCM-SHA384, bits=256/256
mail postfix/smtpd[4579]: NOQUEUE: reject: RCPT from unknown[127.0.0.1]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table; from=<> to=<MAILER-DAEMON@winwinmarke$    mail sendmail[4593]: w635Z73E004593: to=MAILER-DAEMON, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=46944, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
mail sendmail[4593]: w635Z73E004593: w635Z73F004593: return to sender: User unknown
mail postfix/smtpd[4579]: NOQUEUE: reject: RCPT from unknown[127.0.0.1]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table; from=<> to=<[email protected]> $    mail sendmail[4593]: w635Z73F004593: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=47968, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
mail sendmail[4593]: w635Z73E004593: Losing ./qfw635Z73E004593: save    mail panic
mail sendmail[4593]: w635Z73E004593: SYSERR(spamfilter): savemail: cannot save rejected e    mail anywhere
mail postfix/smtpd[4579]: disconnect from unknown[127.0.0.1]
mail postfix/pipe[4591]: BBCB623331: to=<[email protected]>, relay=spamassassin, delay=104, delays=0.05/0.02/0/103, dsn=5.3.0, status=bounced (service unavailable)
mail postfix/qmgr[69009]: BBCB623331: removed
mail postfix/smtpd[18405]: connect from unknown[161.132.201.90]
mail postfix/smtpd[18405]: warning: unknown[161.132.201.90]: SASL LOGIN authentication failed: Invalid authentication mechanism
mail postfix/smtpd[18405]: disconnect from unknown[161.132.201.90]
mail postfix/smtpd[29270]: connect from unknown[94.16.117.217]
mail postfix/smtpd[29270]: warning: unknown[94.16.117.217]: SASL LOGIN authentication failed: Invalid authentication mechanism
mail postfix/smtpd[29270]: disconnect from unknown[94.16.117.217]
mail postfix/anvil[39360]: statistics: max connection rate 1/60s for (smtp:178.141.251.45) at Jul  3 05:33:37
mail postfix/anvil[39360]: statistics: max connection count 1 for (smtp:178.141.251.45) at Jul  3 05:33:37
mail postfix/anvil[39360]: statistics: max cache size 1 at Jul  3 05:33:37
mail postfix/smtpd[43131]: connect from unknown[46.244.212.248]
mail postfix/smtpd[43131]: warning: unknown[46.244.212.248]: SASL LOGIN authentication failed: Invalid authentication mechanism
mail postfix/smtpd[43131]: disconnect from unknown[46.244.212.248]

答案1

Authentication-Warning 消息记录了用户提交邮件消息spamfilter但用户设置(也可以说:伪造)发件人地址的事实MAILER-DAEMON。它实际上只是一个警告,并不妨碍邮件的传递。

该消息User unknown in virtual mailbox table告诉您,您的 Postfix 安装不知道邮件地址[email protected](第一个实例)和[email protected](第二个实例)。原因可能只是您忘记在别名文件中添加这些地址的常用定义。

答案2

身份验证警告:servername.com:垃圾邮件过滤器使用 -f 将发件人设置为 MAILER-DAEMON

除了什么Tilman Schmidt 解释道您可以通过将错误消息中的系统用户(spamfilter在本例中是,添加到 sendmail 受信任用户列表中)来解决该问题。

在您的 sendmail.mc 中直接使用以下命令定义受信任的用户:

define(`confTRUSTED_USERS',`root daemon spamfilter')

或设置:

FEATURE(`use_ct_file')
define(`confCT_FILE', `/etc/mail/trusted-users')

并将受信任的用户添加spamfilter到默认/etc/mail/trusted-users配置文件或自定义位置。

相关内容