Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUTH LOGIN broken #29

Open
michele-comitini opened this issue Dec 10, 2015 · 2 comments
Open

AUTH LOGIN broken #29

michele-comitini opened this issue Dec 10, 2015 · 2 comments

Comments

@michele-comitini
Copy link

The strings to be encoded are:

  • 'Username:'
  • 'Password:'

Mind the ":" at the end!

@michele-comitini
Copy link
Author

as a reference see: http://fehcom.de/qmail/smtpauth.html

@jowenn
Copy link

jowenn commented Feb 14, 2016

That is not the only problem, at least for me.

Outlook 2016 cannot authenticate with AUTH LOGIN, because of the missing ":" and because 334 is sent as unicode over the wire, instead of plain ascii.

The ":" at the end and changing: encode_b64 to
def encode_b64(data):
'''Wrapper for b64encode, without having to struggle with bytestrings.'''
byte_string = data.encode('utf-8')
encoded = base64.b64encode(byte_string)
return encoded

makes it possible for me to let outlook 2016 connect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants