python - Buildbot (from buildbot.net) : iCloud email not working as Status Target -
i setting buildbot use icloud email address status target :
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")
(the icloud email setup instructions here).
seems there's wrong tls/ssl handshake (from 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 not complete ssl/tls handshake <<< 250-no-soliciting <<< 250 size 28311552 >>> starttls <<< 220 2.5.0 go ahead tls negotiation.
note : not able send email command line via "mail" or "sendmail" - didn't bother since noticed buildbot has own email client python code.
please - thank !
with of anti-spam measures in place these days, strategy of sending mail directly recipient's mail server unlikely work well. better either use organization's smtp server.
that aside, suspect problem here don't have pycrypto installed, or using twisted reactor doesn't support tls.
Comments
Post a Comment