smtp problem

Piet van Oostrum piet at
Tue Feb 18 16:52:23 CET 2003

>>>>> huber <nospam at> (H) wrote:

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

H> telnet 25
H> Versuch...
H> Verbunden mit .........
H> Escape-Zeichen ist '^]'.
H> 220 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
Piet van Oostrum <piet at>
Private email: P.van.Oostrum at

More information about the Python-list mailing list