Kallithea issues archive

Issue #133: NTLM authentification issue

Reported by: Samuel Delisle
State: new
Created on: 2015-05-14 20:12
Updated on: 2015-05-16 21:32

Description

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.

Attachments

Comments

Comment by Thomas De Schampheleire, on 2015-05-16 20:55

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?

Comment by Samuel Delisle, on 2015-05-16 21:32

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.