Athentication problem (SOLVED)

Stephen Liu satimis at
Wed Jul 16 15:14:35 EDT 2008

Hi Dan,

> It looks like you have specified PLAIN as your only mechanism 
> within imapd.conf, and I'm guessing you have 'allowplaintext: 
> yes' set as well.
> LOGIN is more typical within SMTP connections, so I would add it. 
> I'm not aware of any equivalent 'allowplaintext' option within 
> Postfix. I don't think you need one.

$ grep allowplaintext /etc/imapd.conf
allowplaintext: yes

$ grep alllowplaintext /etc/postfix/
$ grep plain /etc/postfix/
$ grep text /etc/postfix/
all without printout

> You will also need to create a SASL config file for Postfix which 
> matches this configuration, to get similar authentication 
> functionality. Typically, you'd create the file 
> '/etc/postfix/sasl/smtpd.conf' and put these lines into it (I 
> would add LOGIN):
> mech_list: PLAIN LOGIN
> pwcheck_method: saslauthd
> auto_transition: no
> saslauthd_path: /var/spool/postfix/var/run/saslauthd/mux
> however, if you are running your postfix chrooted, which appears 
> to be the case, then you'll want to change that last line to:
> saslauthd_path: /var/run/saslauthd/mux

$ grep saslauthd_path /etc/imapd.conf
sasl_saslauthd_path: /var/spool/postfix/var/run/saslauthd/mux

$ locate mux | grep saslauthd

The path is "/var/spool/postfix/var/run/saslauthd/mux"

$ sudo nano /etc/postfix/sasl/smtpd.conf

adding following lines on the file:
mech_list: PLAIN LOGIN
pwcheck_method: saslauthd
auto_transition: no
sasl_saslauthd_path: /var/spool/postfix/var/run/saslauthd/mux

$ sudo /etc/init.d/postfix restart
 * Stopping Postfix Mail Transport Agent postfix    [ ok ] 
 * Starting Postfix Mail Transport Agent postfix    [ ok ] 

$ sudo /etc/init.d/saslauthd restart
Stopping SASL Authentication Daemon: saslauthd.
Starting SASL Authentication Daemon: saslauthd.

$ sudo /etc/init.d/cyrus2.2 restart
Stopping Cyrus IMAPd: cyrmaster.
Waiting for complete shutdown...
Starting Cyrus IMAPd: cyrmaster.

Start Evolution on local machine.  Now users can send and receive mails
via/on the server.

Thanks again for your assistance


Send instant messages to your online friends 

More information about the Cyrus-sasl mailing list