Zoe and Newspipe

Lukasz Wiechec <[email protected]> Fri, 25 Mar 2005 00:03:13 +0100
Newsgroups gmane.mail.zoe.general
Message-ID <20050324230313.GB8063@poppy>
--t0UkRYy7tHLRMCai
Content-Type: multipart/mixed; boundary="V0207lvV8h4k8FAm"
Content-Disposition: inline


--V0207lvV8h4k8FAm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

The special time has come and I decided to integrate Newspipe with ZOE.
Apparently, the package available from Newspipe's homepage
(http://newspipe.sourceforge.net) does not support SMTP authentication so I
started to dab my finger in Python, only to discover that I can't get throu=
gh
with it. The passwords (which are 100% correct, I'm using them with msmtp a=
nd
mutt to pass my outgoing mail to ZOE) are not working and I'm getting this
error:

<snip>

send: 'ehlo mymachine\r\n'
reply: '250-mymachine Hello localhost.localdomain\r\n'
reply: '250-AUTH LOGIN PLAIN\r\n'
reply: '250 STARTTLS\r\n'
reply: retcode (250); Msg: mymachine Hello localhost.localdomain
AUTH LOGIN PLAIN
STARTTLS
send: 'STARTTLS\r\n'
reply: '220 Ready to start TLS\r\n'
reply: retcode (220); Msg: Ready to start TLS
send: 'ehlo mymachine\r\n'
reply: '250-mymachine Hello localhost.localdomain\r\n'
reply: '250-AUTH LOGIN PLAIN\r\n'
reply: '250 STARTTLS\r\n'
reply: retcode (250); Msg: mymachine Hello localhost.localdomain
AUTH LOGIN PLAIN
STARTTLS
send: 'AUTH PLAIN bHVrYXN6AGx1a2FzegBxYXp3czE5NA=3D=3D\r\n'
reply: '535 Authentication failed\r\n'
reply: retcode (535); Msg: Authentication failed
Traceback (most recent call last):
  File "script1.py", line 24, in ?
      server.login('lukasz', 'qazws194')
  File "/usr/lib/python2.3/smtplib.py", line 583, in login
      raise SMTPAuthenticationError(code, resp)
      smtplib.SMTPAuthenticationError: (535, 'Authentication failed')
     =20
</snip>

I also attach small python snippet I've came up with to test the authentica=
tion,
maybe there is something wrong with it.

cheers,

--=20
L.

--V0207lvV8h4k8FAm
Content-Type: text/x-python; charset=us-ascii
Content-Disposition: attachment; filename="script2.py"
Content-Transfer-Encoding: quoted-printable

import sys, smtplib

=66romaddr =3D "[email protected]"
toaddrs =3D "[email protected]"
print "Enter message, end with ^D:"
msg =3D 'Test message'
while 1:
	print "Message length is %d" % len(msg)

	server =3D smtplib.SMTP('zoemachine:10025')
	server.set_debuglevel(1)
	server.ehlo()
	server.starttls()
	server.ehlo()
	server.login('my_zoe_username', 'my_zoe_password')
	server.sendmail(fromaddr, toaddrs, msg)
	server.quit()
=09

--V0207lvV8h4k8FAm--

--t0UkRYy7tHLRMCai
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCQ0cxZr2Gc8MVwc8RAgkxAJ0f4c5HjRgkDJjBCU2v1EJWAStLCQCfborz
o/mQLyTSplyJlBpLhmwu/FU=
=TqV7
-----END PGP SIGNATURE-----

--t0UkRYy7tHLRMCai--


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click