我搭建了一个邮件服务器,添加虚拟用户,如果用网页登陆邮箱,与gmail之间收发邮件没有任何问题,但是如果我用python程序向gmail发邮件,被gmail当作spam退回,/var/log/mail.log里面...
我搭建了一个邮件服务器,添加虚拟用户,如果用网页登陆邮箱,与gmail之间收发邮件没有任何问题,但是如果我用python程序向gmail发邮件,被gmail当作spam退回,/var/log/mail.log里面的描述是:
Apr 22 05:55:49 ip-172-31-5-96 postfix/smtpd[2305]: connect from unknown[58.246.137.30]
Apr 22 05:55:50 ip-172-31-5-96 postfix/smtpd[2305]: Anonymous TLS connection established from unknown[58.246.137.30]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Apr 22 05:55:51 ip-172-31-5-96 postfix/smtpd[2305]: 475E24298A: client=unknown[58.246.137.30], sasl_method=PLAIN, sasl_username=test@xiaoniuniu.me
Apr 22 05:55:51 ip-172-31-5-96 postfix/cleanup[2310]: 475E24298A: message-id=<>
Apr 22 05:55:51 ip-172-31-5-96 postfix/qmgr[27983]: 475E24298A: from=, size=258, nrcpt=1 (queue active)
Apr 22 05:55:54 ip-172-31-5-96 postfix/smtp[2312]: 475E24298A: host gmail-smtp-in.l.google.com[74.125.130.27] said: 421-4.7.0 [52.74.52.159 15] Our system has detected an unusual rate of 421-4.7.0 unsolicited mail originating from your IP address. To protect our 421-4.7.0 users from spam, mail sent from your IP address has been temporarily 421-4.7.0 rate limited. Please visit 421-4.7.0 http://www.google.com/mail/help/bulk_mail.html to review our Bulk 421 4.7.0 Email Senders Guidelines. nb3si6115690pbc.151 - gsmtp (in reply to end of DATA command)
Apr 22 05:55:54 ip-172-31-5-96 postfix/smtp[2312]: connect to gmail-smtp-in.l.google.com[2404:6800:4003:c02::1a]:25: Network is unreachable
我用python发的时候,用text和html都是相同的log,请问用python和网页发邮件有什么不同?为什么网页没有问题,python发就不行?
展开