我正在使用 perl 脚本将每日状态发送到我的 gmail 帐户。
出于某种原因,sendmail 似乎在向 gmail 发送垃圾邮件,尽管我只发送了一封电子邮件,
Gmail 却抱怨验证失败,这似乎触发了将消息发送到备用中继的事件。由于所有中继都指向同一个帐户,因此它会引发垃圾邮件标志(... 以速率接收消息...)
此问题与发送主机有关,因为从另一台主机向同一收件人发送电子邮件会立即通过。
收件人最终(几个小时后)会收到 5 份原始电子邮件副本
。注意:使用 postfix 代替 sendmail 是可行的……
有人能告诉我解决办法吗?
Mar 23 07:00:01 myhostname /USR/SBIN/CRON[16720]: (root) CMD (perl /root/daily-check.pl^I)
Mar 23 07:00:01 myhostname /USR/SBIN/CRON[16721]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
Mar 23 07:00:01 myhostname sendmail[16742]: r2N601Va016742: [email protected], size=445, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
Mar 23 07:00:01 myhostname sm-mta[16743]: r2N6012b016743: from=<[email protected]>, size=680, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=localhost.localdomain [127.0.0.1]
Mar 23 07:00:01 myhostname sendmail[16742]: r2N601Va016742: [email protected], [email protected] (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30445, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r2N6012b016743 Message accepted for delivery)
Mar 23 07:00:02 myhostname sm-mta[16745]: STARTTLS=client, relay=aspmx.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Mar 23 07:00:02 myhostname sm-mta[16745]: r2N6012b016743: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120680, relay=aspmx.l.google.com. [IPv6:2a00:1450:4001:c02::1b], dsn=4.2.1, stat=Deferred: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that
Mar 23 07:00:03 myhostname sm-mta[16745]: STARTTLS=client, relay=alt1.aspmx.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Mar 23 07:00:03 myhostname sm-mta[16745]: r2N6012b016743: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120680, relay=alt1.aspmx.l.google.com. [IPv6:2a00:1450:4010:c03::1b], dsn=4.2.1, stat=Deferred: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that
Mar 23 07:00:04 myhostname sm-mta[16745]: STARTTLS=client, relay=alt2.aspmx.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Mar 23 07:00:04 myhostname sm-mta[16745]: r2N6012b016743: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120680, relay=alt2.aspmx.l.google.com. [IPv6:2607:f8b0:400e:c00::1b], dsn=4.2.1, stat=Deferred: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that
Mar 23 07:00:05 myhostname sm-mta[16745]: STARTTLS=client, relay=aspmx3.googlemail.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Mar 23 07:00:06 myhostname sm-mta[16745]: r2N6012b016743: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:05, xdelay=00:00:05, mailer=esmtp, pri=120680, relay=aspmx3.googlemail.com. [IPv6:2607:f8b0:400e:c00::1b], dsn=4.2.1, stat=Deferred: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that
Mar 23 07:00:07 myhostname sm-mta[16745]: STARTTLS=client, relay=aspmx2.googlemail.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Mar 23 07:00:07 myhostname sm-mta[16745]: r2N6012b016743: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:06, xdelay=00:00:06, mailer=esmtp, pri=120680, relay=aspmx2.googlemail.com. [IPv6:2a00:1450:4010:c03::1b], dsn=4.2.1, stat=Deferred: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that