Re ;
I've installed latest trunk on Debian Lenny, and I've manually created the following file:
/etc/postfix/sasl/smtpd.conf:
Code:
log_level: 6
pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: PLAIN LOGIN NTLM
After this, I've created new reseller and domain account and then, I've created the mail account '
test@nuxwin.net'.
Finally, I've tested the NTLM authentication like this:
Code:
ispcp:~# perl gen-auth
encryption type: NTLM
username: test@nuxwin.net
password:
domain: nuxwin.net
Auth Request: TlRMTVNTUAABAAAAB6IAAAAAAAAAAAAAAAAAAAAAAAA=
challenge: TlRMTVNTUAACAAAAIAAgADAAAAAFogIAf5UpCuXF4wwAAAAAAAAAAAAAAAAAAAAASQBTAFAAQwBQAC4ATgBVAFgAVwBJAE4ALgBDAE8ATQA=
Auth Response: TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAACAAIABwAAAAHgAeAJAAAAAeAB4ArgAAAAAAAACMAAAABaICAA+jlXe/YoIoIiU5RhWXFHvfcJlSjzWwrt7n149VWVB+JDPfBv6kg2wd35Msmr00O0kAUwBQAEMAUAAuAE4AVQBYAFcASQBOAC4AQwBPAE0AdABlAHMAdABAAG4AdQB4AHcAaQBuAC4AbgBlAHQAdABlAHMAdABAAG4AdQB4AHcAaQBuAC4AbgBlAHQA
Note: Here, the challenge was provided by postfix.
Code:
ispcp:~# telnet localhost 25
Trying 127.0.0.1...
Connected to ispcp.nuxwin.com.local.
Escape character is '^]'.
220 ispcp.nuxwin.com ESMTP ispCP 1.0.7 OMEGA Managed
EHLO testing.tld
250-ispcp.nuxwin.com
250-PIPELINING
250-SIZE
250-VRFY
250-ETRN
250-AUTH NTLM PLAIN LOGIN
250-AUTH=NTLM PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH NTLM TlRMTVNTUAABAAAAB6IAAAAAAAAAAAAAAAAAAAAAAAA=
334 TlRMTVNTUAACAAAAIAAgADAAAAAFogIAf5UpCuXF4wwAAAAAAAAAAAAAAAAAAAAASQBTAFAAQwBQAC4ATgBVAFgAVwBJAE4ALgBDAE8ATQA=
TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAACAAIABwAAAAHgAeAJAAAAAeAB4ArgAAAAAAAACMAAAABaICAA+jlXe/YoIoIiU5RhWXFHvfcJlSjzWwrt7n149VWVB+JDPfBv6kg2wd35Msmr00O0kAUwBQAEMAUAAuAE4AVQBYAFcASQBOAC4AQwBPAE0AdABlAHMAdABAAG4AdQB4AHcAaQBuAC4AbgBlAHQAdABlAHMAdABAAG4AdQB4AHcAaQBuAC4AbgBlAHQA
235 2.7.0 Authentication successful
quit
Note: Here, the AUTH request 'TlRMTVNTUAABAAAAB6IAAAAAAAAAAAAAAAAAAAAAAAA=' was provided by the gen-auth script. The response:
Code:
TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAACAAIABwAAAAHgAeAJAAAAAeAB4ArgAAAAAAAACMAAAABaICAA+jlXe/YoIoIiU5RhWXFHvfcJlSjzWwrt7n149VWVB+JDPfBv6kg2wd35Msmr00O0kAUwBQAEMAUAAuAE4AVQBYAFcASQBOAC4AQwBPAE0AdABlAHMAdABAAG4AdQB4AHcAaQBuAC4AbgBlAHQAdABlAHMAdABAAG4AdQB4AHcAaQBuAC4AbgBlAHQA
was provided by the gen-auth script :
Code:
TlRMTVNTUAACAAAAIAAgADAAAAAFogIAf5UpCuXF4wwAAAAAAAAAAAAAAAAAAAAASQBTAFAAQwBQAC4ATgBVAFgAVwBJAE4ALgBDAE8ATQA=
that was provided by postfix after the authentication request.
I've also tested NTLM authentication from mail client (Evolution):
The relevant mail log:
Code:
ispcp:~# tail -f -n0 /var/log/mail.log
Oct 28 15:11:24 ispcp postfix/smtpd[31411]: connect from unknown[192.168.1.100]
Oct 28 15:11:24 ispcp postfix/smtpd[31411]: 34650369BE: client=unknown[192.168.1.100], sasl_method=NTLM, sasl_username=test@nuxwin.net
Oct 28 15:11:24 ispcp postfix/cleanup[31413]: 34650369BE: message-id=<1288271522.14861.1.camel@mdev.nuxwin.com>
Oct 28 15:11:24 ispcp postfix/qmgr[29929]: 34650369BE: from=<test@nuxwin.net>, size=527, nrcpt=1 (queue active)
Oct 28 15:11:24 ispcp postfix/virtual[31421]: 34650369BE: to=<test@nuxwin.net>, relay=virtual, delay=0.11, delays=0.07/0.03/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Oct 28 15:11:24 ispcp postfix/qmgr[29929]: 34650369BE: removed
Oct 28 15:11:24 ispcp postfix/smtpd[31411]: disconnect from unknown[192.168.1.100]
Conclusion: All works fine.
Note: For the record:
Code:
ispcp:~# uname -a
Linux ispcp 2.6.26-2-amd64 #1 SMP Thu Sep 16 15:56:38 UTC 2010 x86_64 GNU/Linux
Code:
ispcp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 5.0.6 (lenny)
Release: 5.0.6
Codename: lenny
ispcp:~#
Code:
ispcp:~# cat /etc/ispcp/ispcp.conf |grep '^Version'
Version = 1.0.7 OMEGA
ispcp:~#