Hae you tried PLAIN with auxprop only? Use gen-auth, a script from John Jetmoore, to create auth strings and telnet to the server.
p@rick * Andrea <devnul...@gmail.com>: > 2014-03-31 20:39 GMT+02:00 Patrick Ben Koetter <p...@sys4.de>: > > > Any log? > > > > > > Sure, > with: > > pwcheck_method: saslauthd > mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 NTLM > > Using IMAP account works. > > When I change smtpd.conf with: > > pwcheck_method: auxprop saslauthd > mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 NTLM > auxprop_plugin: sql > sql_engine: mysql > sql_hostnames: xxx > sql_user: xxx > sql_passwd: xxx > sql_database: xxx > sql_select: SELECT password FROM LoginUsers WHERE LoginUser = '%u@%r' > > With same IMAP user, this is debug postfix log: > > Mar 31 20:52:32 smtps postfix/smtpd[14221]: connect from > unknown[192.168.0.42] > Mar 31 20:52:32 smtps postfix/smtpd[14221]: smtp_stream_setup: maxtime=300 > enable_deadline=0 > Mar 31 20:52:32 smtps postfix/smtpd[14221]: match_hostname: unknown ~? > 192.168.0.0/16 > Mar 31 20:52:32 smtps postfix/smtpd[14221]: match_hostaddr: 192.168.0.42 ~? > 192.168.0.0/16 > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: 220 > xxx ESMTP Postfix > Mar 31 20:52:32 smtps postfix/smtpd[14221]: xsasl_cyrus_server_create: SASL > service=smtp, realm=(null) > Mar 31 20:52:32 smtps postfix/smtpd[14221]: name_mask: noanonymous > Mar 31 20:52:32 smtps postfix/smtpd[14221]: watchdog_pat: 0x7f0ed67af8b0 > Mar 31 20:52:32 smtps postfix/smtpd[14221]: < unknown[192.168.0.42]: EHLO > [192.168.0.42] > Mar 31 20:52:32 smtps postfix/smtpd[14221]: match_list_match: unknown: no > match > Mar 31 20:52:32 smtps postfix/smtpd[14221]: match_list_match: 192.168.0.42: > no match > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: 250-xxx > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: > 250-PIPELINING > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: > 250-SIZE 51200000 > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: > 250-VRFY > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: > 250-ETRN > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: > 250-STARTTLS > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: > 250-AUTH PLAIN LOGIN CRAM-MD5 DIGEST-MD5 NTLM > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: > 250-AUTH=PLAIN LOGIN CRAM-MD5 DIGEST-MD5 NTLM > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: > 250-ENHANCEDSTATUSCODES > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: > 250-8BITMIME > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: 250 DSN > Mar 31 20:52:32 smtps postfix/smtpd[14221]: watchdog_pat: 0x7f0ed67af8b0 > Mar 31 20:52:32 smtps postfix/smtpd[14221]: < unknown[192.168.0.42]: AUTH > PLAIN AGFuZHJlYS5zY2Fyc29Ac3RhZmYudGVsZW1hci5pdAB2ZHdzdDFuMTA= > Mar 31 20:52:32 smtps postfix/smtpd[14221]: xsasl_cyrus_server_first: > sasl_method PLAIN, init_response > AGFuZHJlYS5zY2Fyc29Ac3RhZmYudGVsZW1hci5pdAB2ZHdzdDFuMTA= > Mar 31 20:52:32 smtps postfix/smtpd[14221]: xsasl_cyrus_server_first: > decoded initial response > Mar 31 20:52:32 smtps postfix/smtpd[14221]: warning: unknown[192.168.0.42]: > SASL PLAIN authentication failed: authentication failure > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: 535 > 5.7.8 Error: authentication failed: authentication failure > Mar 31 20:52:32 smtps postfix/smtpd[14221]: watchdog_pat: 0x7f0ed67af8b0 > Mar 31 20:52:32 smtps postfix/smtpd[14221]: < unknown[192.168.0.42]: AUTH > LOGIN > Mar 31 20:52:32 smtps postfix/smtpd[14221]: xsasl_cyrus_server_create: SASL > service=smtp, realm=(null) > Mar 31 20:52:32 smtps postfix/smtpd[14221]: name_mask: noanonymous > Mar 31 20:52:32 smtps postfix/smtpd[14221]: xsasl_cyrus_server_first: > sasl_method LOGIN > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > xsasl_cyrus_server_auth_response: uncoded server challenge: Username: > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: 334 > VXNlcm5hbWU6 > Mar 31 20:52:32 smtps postfix/smtpd[14221]: < unknown[192.168.0.42]: > YW5kcmVhLnNjYXJzb0BzdGFmZi50ZWxlbWFyLml0 > Mar 31 20:52:32 smtps postfix/smtpd[14221]: xsasl_cyrus_server_next: > decoded response: usern...@domain.com > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > xsasl_cyrus_server_auth_response: uncoded server challenge: Password: > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: 334 > UGFzc3dvcmQ6 > Mar 31 20:52:32 smtps postfix/smtpd[14221]: < unknown[192.168.0.42]: > dmR3c3QxbjEw > Mar 31 20:52:32 smtps postfix/smtpd[14221]: xsasl_cyrus_server_next: > decoded response: mypassword > Mar 31 20:52:32 smtps postfix/smtpd[14221]: warning: unknown[192.168.0.42]: > SASL LOGIN authentication failed: authentication failure > Mar 31 20:52:32 smtps postfix/smtpd[14221]: > unknown[192.168.0.42]: 535 > 5.7.8 Error: authentication failed: authentication failure > Mar 31 20:52:32 smtps postfix/smtpd[14221]: watchdog_pat: 0x7f0ed67af8b0 > > Thanks -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein