Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

centos6 64 bits:

when i use pop3 for access cyrus-imapd:

S: +OK li557-53 Cyrus POP3 v2.3.16-Fedora-RPM-2.3.16-6.el6_2.5 server ready <3176565056.1354071404@li557-53>
S: +OK Name is a valid mailbox
C: PASS abcabc
S: -ERR [AUTH] Invalid login

and with USER "abc" failed too.

my imapd.conf:

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: auxprop
sasl_mech_list: PLAIN LOGIN
tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt

allowplaintext: true


sasldblistuser2: userPassword

but my postfix is ok with same user.


pwcheck_method: auxprop
mech_list: plain login


queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = localhost
mydomain =
myorigin = $mydomain
inet_interfaces = all
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain
local_recipient_maps =
unknown_local_recipient_reject_code = 550
mynetworks_style = subnet
mynetworks =,
relay_domains = $mydestination
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
home_mailbox = Maildir/

mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp

debug_peer_level = 2
debugger_command =
     ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES

smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
message_size_limit = 15728640

please help.

use imap:

username: "" can login, but can't get mail
username: "abc" can't login

use pop:

username: "" can login, but repoort: Unable to locate maildrop : Invalid mailbox name
username: "abc", can't login     

it seems something wrong with cyrus-imapd mailbox.

the mail saved into user/abc but fetch mail from user/

share|improve this question
up vote 0 down vote accepted

It doesn't look like sasl problem or authentication problem at all. I think you misconfigured cyrus mailboxes. In order to use mailboxes with domain part like you should specify

unixhierarchysep: yes

in your imapd.conf.

And then you should create mailboxes like this:

cm user/

I think this will be enough to make IMAP/POP3 work.

UPD: sorry, forgot one more option, you need this also in your imapd.conf:

virtdomains: userid
share|improve this answer
it works.that is great! Thank you. it is really hard to figure out from document. – Felix Chang Nov 28 '12 at 8:56

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.