NTLM authentification issue

Issue #133 new
Samuel Delisle created an issue

Kallithea seems unable to send outgoing emails using ntlm authentification.

The login returns an SMTPException: No suitable authentification method found. error,

This is Kallithea 0.2.1 running on Ubuntu server. The python-ntlm module is installed and appears under Kallithea's system info page. Our Exchange mail server only allows ntlm as authentification.

I did some snooping around and this looks like a nice example that uses python-ntlm. My very limited python knowledge prevent me from doing much with it, though.

Comments (2)

  1. Thomas De Schampheleire

    Thanks for reporting and the example code. I would consider this a feature request rather than a bug, though.

    The SMTP related code in Kallithea is in: kallithea/lib/rcmail/smtp_mailer.py

    Hooking in the example code here doesn't look that difficult, but I don't know how it should be structured to allow non-NTLM SMTP authentication to succeed still. Is there some auto-detection possibility maybe? Or should this be a configuration option?

  2. Samuel Delisle reporter

    You're right, this is a feature... My bad.

    The authentification method is configured under the [DEFAULT] smtp_auth = ... key in production.ini. I'm guessing "ntlm" must be tested as a special case somewhere.

  3. Log in to comment