Cyrus: How Do I Configure saslauthd For Authentication?

Posted by Nick on Server Fault See other posts from Server Fault or by Nick
Published on 2010-04-15T23:40:03Z Indexed on 2010/04/17 3:43 UTC
Read the original article Hit count: 488

Filed under:
|
|
|

I'm trying to get Cyrus IMAP (v 2.2 on Ubuntu 9.04) setup and working, but I'm having a bit of trouble getting the login working correctly.



I've created a mailbox for my test user "nrahl":

cm user/nrahl

and then created a password:

$ saslpasswd2 nrahl



I'm attempting to connect to the mailbox using Thunderbird. I'm using the machine's LAN IP address as the host, and "nrahl" as the username. It connects to the server and prompts me for the password. When I enter it, I get "Login to server failed." in Thunderbird, and /var/log/mail.log shows:

Apr 15 19:20:01 IMAP cyrus/imap[1930]: accepted connection
Apr 15 19:20:09 IMAP cyrus/imap[1930]: badlogin: [192.168.5.21] plaintext nrahl SASL(-13): authentication failure: checkpass failed



Part of /etc/imapd.conf with comments removed:

sieveusehomedir: false
sievedir: /var/spool/sieve
#mailnotifier: zephyr
#sievenotifier: zephyr
#dracinterval: 0
#drachost: localhost
hashimapspool: true
allowplaintext: yes
sasl_mech_list: PLAIN
#allowapop: no
#sasl_maximum_layer: 256
#loginrealms: example.com
#virtdomains: userid
#defaultdomain:
sasl_pwcheck_method: saslauthd
#sasl_auxprop_plugin: sasldb
sasl_auto_transition: no

UPDATE:

When setting:

sasl_pwcheck_method: alwaystrue

in /etc/imapd.conf, login works correctly. So I'm assuming the issue is saslauthd related.

© Server Fault or respective owner

Related posts about saslauthd

Related posts about cyrus