<div dir="ltr"><br>Hello,<br>I hope this is the right place to ask for a little help.<br><br>I&#39;m trying to configure postfix to authenticate with both an SQL server and an IMAP server.<br><br>My smtpd.conf:<br><br>pwcheck_method: auxprop saslauthd<br>
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 NTLM<br><br>auxprop_plugin: sql<br>sql_engine: mysql<br>sql_hostnames: xxx<br>sql_user: xxx<br>sql_passwd: xxx<br>sql_database: xxx<br>sql_select: SELECT password FROM LoginUsers WHERE LoginUser = &#39;%u@%r&#39;<br>
 <br> <br>My /etc/default/saslauthd says:<br><br>MECHANISMS=&quot;rimap&quot;<br>OPTIONS=&quot;-c -m /var/spool/postfix/var/run/saslauthd -r -O <a href="http://imap.server.com">imap.server.com</a>&quot;<br><br><br>I&#39;m able to do this things:<br>
1) just auxprop works, if I telnet and make AUTH PLAIN with mysql user, OK<br>2) just saslauthd works, if I telnet and make AUTH PLAIN with imap user, OK<br>3) auxprop saslauthd with mysql user works, if I telnet and AUTH PLAIN with mysql user OK<br>
4) auxprop saslauthd with imap user DOESN&#39;T WORK, if I telnet and AUTH PLAIN with imap user FAILED<br><br>Strange thing is that with config 4 if I try testsaslauthd with the same imap user it works.<br><br>I tried with both centos or debian, and it&#39;s the same. It doesn&#39;t seem a permission problem.<br>
<br>Any hint on how to solve this?<br>On postfix forum are saying this seems a cyrus-sasl problem...<br><br>Thanks!!<br>Andrea<br></div>