I am trying to send email using an app in python using smtplib module. It works fine from windows but it fails in linux (ubunto) with 500 error.
I tried to debug it using swaks module from the linux server and get the following result.
=== Trying smtp.zoho.com:465...
=== Connected to smtp.zoho.com.
=== TLS started with cipher TLSv1:AES128-SHA:128
=== TLS no local certificate set
=== TLS peer DN="/C=IN/ST=Tamilnadu/L=Chennai/O=ZOHO Corporation/CN=*.zoho.com"
<~ 220 mx.zohomail.com SMTP Server ready August 20, 2014 8:52:30 AM PDT
~> EHLO tenfalcons
~> tenfalcons.com
<~ 250-mx.zohomail.com Hello tenfalcons (tenfalcons.com (66.228.35.165))
<~ 250-AUTH LOGIN PLAIN
<~ 250 SIZE 25000000
~> AUTH LOGIN
<~* 500 mx.zohomail.com Syntax error, command unrecognized: TENFALCONS.COM
~> AUTH PLAIN AG5vLXJlcGx5QHRlbmZhbGNvbnMuY29tAHpvaG84OEluZm8=
*** Remote host closed connection unexpectedly.
It fails on authentication. Same code using same username and password from windows is working fine though.
Let me know, what kind of problem it is and how can we resolve it.
Deepak.