You are not logged in.

#1 2014-10-25 12:52:12

petelewis
Package Maintainer (PM)
From: Birmingham, UK
Registered: 2008-08-14
Posts: 128
Website

[Solved] How to get msmtp to support NTLM auth.

Hi,

Been playing around with msmtp. For some reason the Arch version doesn't seem to support NTLM:

% msmtp --version
msmtp version 1.4.32
Platform: x86_64-unknown-linux-gnu
TLS/SSL library: GnuTLS
Authentication library: GNU SASL
Supported authentication methods:
plain scram-sha-1 cram-md5 gssapi external digest-md5 login 
IDN support: enabled
NLS: enabled, LOCALEDIR is /usr/share/locale
Keyring support: Gnome 
System configuration file name: /etc/msmtprc
User configuration file name: /home/pete/.msmtprc

According to the README in the source, it should support NTLM if compiled with GNU libgsasl, which Arch's is. I have a /usr/lib/sasl/libntlm.so (though this is owned by libsasl not gsasl).

I don't know much about SASL packages etc., but can anyone point me in the right direction? There are no obvious compile time flags I can see...

(I tried recompiling against openssl instead of gnutls just in case, but this didn't work either.)

Thanks.

Last edited by petelewis (2014-10-25 19:00:54)


"Cared thou not, thou would have abstained." - Xyne

Offline

#2 2014-10-25 19:00:41

petelewis
Package Maintainer (PM)
From: Birmingham, UK
Registered: 2008-08-14
Posts: 128
Website

Re: [Solved] How to get msmtp to support NTLM auth.

Okay, I figured it out. There's a libntlm in the AUR which needs to be present at compile time for gsasl. A recompiled gsasl with this allows NTLM to be used in msmtp.

Guess it would be nice if this was included in the standard version...


"Cared thou not, thou would have abstained." - Xyne

Offline

#3 2014-10-28 09:09:58

cgie
Member
Registered: 2014-10-28
Posts: 2

Re: [Solved] How to get msmtp to support NTLM auth.

Didn't work for me. Can you give some further information about what you were doig exactly? I guess this is a common issue and it would be nice to have it here for future reference.

Offline

#4 2014-10-28 09:20:44

cgie
Member
Registered: 2014-10-28
Posts: 2

Re: [Solved] How to get msmtp to support NTLM auth.

Disregard my above posting, it works exactly as you said, I just encountered some different error. I will probably write the process up myself. Thanks for your solution!

Offline

Board footer

Powered by FluxBB