Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: [] 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
#virtdomains: userid
sasl_pwcheck_method: saslauthd
#sasl_auxprop_plugin: sasldb
sasl_auto_transition: no


When setting:

sasl_pwcheck_method: alwaystrue

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

share|improve this question
Post your configuration of saslauthd. – joschi Apr 17 '10 at 6:23

Maybe a silly question but have you started the saslauthd service:

$ sudo service saslauthd status
 * Checking SASL Authentication Daemon saslauthd             [ OK ] 
share|improve this answer

Make sure /etc/default/saslauthd is set to sasldb.

Use testsaslauthd to ensure it works. Then try using imtest. Finally try thunderbird.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.