gpt4 book ai didi

python - Buildbot(来自 buildbot.net): iCloud email not working as Status Target

转载 作者:太空宇宙 更新时间:2023-11-03 18:21:09 25 4
gpt4 key购买 nike

我正在设置 buildbot 以使用 iCloud 电子邮件地址作为状态目标:

m = mail.MailNotifier(fromaddr="some_icloud_user@me.com",
sendToInterestedUsers=False,
extraRecipients=["some_other_icloud_users@me.com"],
useTls=True, relayhost="smtp.mail.me.com", smtpPort=587,
smtpUser="some_icloud_user@me.com", smtpPassword="some_icloud_password")

(iCloud 电子邮件设置说明为 here )。

TLS/SSL 握手似乎有问题(来自 master/twistd.log):

2014-06-09 00:43:34-0700 [ESMTPSender,client] SMTP Client retrying server. Retry: 1
2014-06-09 00:43:34-0700 [ESMTPSender,client] Unhandled Error
Traceback (most recent call last):
File "/Users/ionut/work/buildbot/sandbox/lib/python2.7/site-packages/Twisted-14.0.0-py2.7-macosx-10.9-intel.egg/twisted/internet/tcp.py", line 214, in doRead
return self._dataReceived(data)
File "/Users/ionut/work/buildbot/sandbox/lib/python2.7/site-packages/Twisted-14.0.0-py2.7-macosx-10.9-intel.egg/twisted/internet/tcp.py", line 220, in _dataReceived
rval = self.protocol.dataReceived(data)
File "/Users/ionut/work/buildbot/sandbox/lib/python2.7/site-packages/Twisted-14.0.0-py2.7-macosx-10.9-intel.egg/twisted/protocols/basic.py", line 571, in dataReceived
why = self.lineReceived(line)
File "/Users/ionut/work/buildbot/sandbox/lib/python2.7/site-packages/Twisted-14.0.0-py2.7-macosx-10.9-intel.egg/twisted/mail/smtp.py", line 1063, in lineReceived
why = self._okresponse(self.code,'\n'.join(self.resp))
--- <exception caught here> ---
File "/Users/ionut/work/buildbot/sandbox/lib/python2.7/site-packages/Twisted-14.0.0-py2.7-macosx-10.9-intel.egg/twisted/mail/smtp.py", line 1411, in esmtpState_starttls
self.transport.startTLS(self.context)
exceptions.AttributeError: 'Client' object has no attribute 'startTLS'
2014-06-09 00:43:34-0700 [ESMTPSender,client] Unhandled error in Deferred:
2014-06-09 00:43:34-0700 [ESMTPSender,client] Unhandled Error
Traceback (most recent call last):
Failure: twisted.mail.smtp.TLSError: 451 Could not complete the SSL/TLS handshake
<<< 250-NO-SOLICITING
<<< 250 SIZE 28311552
>>> STARTTLS
<<< 220 2.5.0 Go ahead with TLS negotiation.

注意:我无法通过“mail”或“sendmail”从命令行发送电子邮件 - 我没有打扰,因为我注意到 buildbot 有自己的电子邮件客户端 Python 代码。

请帮忙 - 谢谢!

最佳答案

随着当今所有反垃圾邮件措施的实现,将邮件直接发送到收件人的邮件服务器的策略不太可能很好地发挥作用。您最好使用组织的 SMTP 服务器。

除此之外,我怀疑这里的问题是您没有安装 pycrypto,或者正在使用不支持 TLS 的 Twisted Reactor。

关于python - Buildbot(来自 buildbot.net): iCloud email not working as Status Target,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24116105/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com