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 install Cyrus with SASL for authentication. I'm struggling getting logins to work properly though. I'm trying to setup virtual hosting, as we'll have several domains worth of email on this host.

In my imapd.conf:

sasl_pwcheck_method: auxprop
virtdomains: true

From sasldblistusers2: userPassword

I have a mailbox called user.matt, and I tried creating and I got an error saying the mailbox already exists. With this setup, I am able to login using imtest localhost -m DIGEST-MD5 -a matt, however I am unable to using imtest localhost -m DIGEST-MD5 -a There is also not a UNIX user called matt on the system. Does anyone have any idea what I am missing?

Exact error from syslog:

imap[23310]: badlogin: localhost [] DIGEST-MD5 [SASL(-13): user not found: no secret in database]

share|improve this question
Did you already read the logs? – Janne Pikkarainen Oct 19 '11 at 8:39
@JannePikkarainen: All the logs say is auth failed because imapd thinks the user doesn't exist. – Matthew Scharley Oct 19 '11 at 9:03
Just got an idea, read my answer to you :) – Janne Pikkarainen Oct 19 '11 at 9:13
up vote 1 down vote accepted

Do you have this in your imapd.conf?


(imapd.conf man page tells you this):

   loginrealms: <empty string>
        The list of remote realms whose users may authenticate using cross-realm authentication identifiers.  Seperate each realm name by a space.  (A  cross-realm  iden‐
        tity is considered any identity returned by SASL with an "@" in it.) Note that to support multiple virtual domains on the same interface/IP, you need to list them
        all as loginreals.  If you don’t list them here, your users probably won’t be able to log in.
share|improve this answer
No I don't. Will try this tomorrow at work, but if this a real config variable, it'd definitely explain the problem. Will accept when I've tried it. – Matthew Scharley Oct 19 '11 at 9:47
It is a real config variable. – Janne Pikkarainen Oct 19 '11 at 10:19
Sorry, that first comment sounded horrible. Unfortunately, this doesn't seem to be helping. I've edited into the question the exact syslog that's being output. – Matthew Scharley Oct 19 '11 at 21:56
Gah, I'm an idiot. At some point last night I deleted the user from SASLdb. This works perfectly, thanks a lot! – Matthew Scharley Oct 19 '11 at 22:18

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.