smtp problem

Piet van Oostrum piet at cs.uu.nl
Tue Feb 18 10:52:23 EST 2003


>>>>> huber <nospam at wanted.com> (H) wrote:

H> strange smtp behavior :
H> doing the smtp-stuff by hand i get the following output :

H> telnet mailserver.xxx.com 25
H> Versuch...
H> Verbunden mit .........
H> Escape-Zeichen ist '^]'.
H> 220 mailserver.xxx.com ESMTP
H> auth login
H> 334 VXNlcm5hbWU6
H> userid_base64
H> 334 UGFzc3dvcmQ6
H> passwd_base64
H> 235 ok, go ahead (#2.0.0)

H> put doing the same with python ( set_debuglevel(1) ) i get an error :

H> send: 'auth login\r\n'
H> reply: '334 VXNlcm5hbWU6\r\n'
H> reply: retcode (334); Msg: VXNlcm5hbWU6
H> send: 'userid_base64\n\r\n'
                       ^^
H> reply: '334 UGFzc3dvcmQ6\r\n'
H> reply: retcode (334); Msg: UGFzc3dvcmQ6
H> send: 'passwd_base64\n\r\n'
                       ^^
H> reply: '501 malformed auth input (#5.5.4)\r\n'

H> does someone know what's going wrong ?

There are additional \n's there. I guess this causes the input to get out
of sync with the expectations of the server (i.e. it receives an empty
password). 
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl




More information about the Python-list mailing list