This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author junpengruan
Recipients Dario D'Amico, Mario Colombo, barry, junpengruan, miss-islington, orsenthil, pepoluan, r.david.murray, rahul-kumi, redstone-cold
Date 2021-04-27.05:02:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I think there is another bug when initial_response_ok=False. When using AUTH PLAIN, the server will response like:
S: 334 ok. go on
and it's not base64 encoding, while in the auth() it will decode the resp(here is "ok, go on") which will cause a binascii.Error:

Traceback (most recent call last):
  File "/usr/lib/python3.6/", line 644, in auth
    challenge = base64.decodebytes(resp)
  File "/usr/lib/python3.6/", line 553, in decodebytes
    return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

I think this fit the title "a bug in smtplib when initial_response_ok=False", should I just comment on this issue or open a new issue?
Date User Action Args
2021-04-27 05:02:52junpengruansetrecipients: + junpengruan, barry, orsenthil, r.david.murray, redstone-cold, Dario D'Amico, Mario Colombo, miss-islington, rahul-kumi, pepoluan
2021-04-27 05:02:52junpengruansetmessageid: <>
2021-04-27 05:02:52junpengruanlinkissue27820 messages
2021-04-27 05:02:52junpengruancreate