Cyrus-2.2.x Virtual domains Problem when logging into imap

Andrew Koros akoros at ke.uu.net
Fri May 28 11:43:30 EDT 2004


Hello,

I am using Simon Matters's Cyrus-Imap-2.2.4 rpm on Fedora. I have an
interesting problem with virtual domains:

I get the following error on attempting to logon to the IMAP server as a
user "andrew at korose.net" for a virtual domain "korose.net":

May 28 18:35:05 tux saslauthd: saslauthd[25717] :cache_get_rlock :
attempting a read lock on slot: 1069
May 28 18:35:05 tux saslauthd: saslauthd[25717] :cache_lookup    :
[login=andrew] [service=korose.net] [realm=imap]: not found, update
pending
May 28 18:35:05 tux saslauthd: saslauthd[25717] :cache_un_lock   :
attempting to release lock on slot: 1069
May 28 18:35:06 tux imap(pam_unix)[25717]: check pass; user unknown
May 28 18:35:06 tux imap(pam_unix)[25717]: authentication failure;
logname=koros uid=0 euid=0 tty= ruser= rhost=
May 28 18:35:08 tux saslauthd: saslauthd[25717] :do_auth         : auth
failure: [user=andrew] [service=imap] [realm=korose.net] [mech=pam]
[reason=PAM auth error]
May 28 18:35:08 tux saslauthd[25717]: do_auth         : auth failure:
[user=andrew] [service=imap] [realm=korose.net] [mech=pam] [reason=PAM
auth error]


However if I log in as "andrew at korose.net@" it works but ofcourse the
mailbox does not exist her is a log:

May 28 18:40:52 tux saslauthd: saslauthd[25717] :cache_get_rlock :
attempting a read lock on slot: 1414
May 28 18:40:52 tux saslauthd: saslauthd[25717] :cache_lookup    :
[login=andrew at korose.net] [service=] [realm=imap]: not found, update
pending
May 28 18:40:52 tux saslauthd: saslauthd[25717] :cache_un_lock   :
attempting to release lock on slot: 1414
May 28 18:40:52 tux PAM_pgsql[25717]: (imap) user andrew at korose.net
authenticated.
May 28 18:40:52 tux imap(pam_unix)[25717]: could not identify user (from
getpwnam(andrew at korose.net))
May 28 18:40:52 tux saslauthd: saslauthd[25717] :cache_get_wlock :
attempting a write lock on slot: 1414
May 28 18:40:52 tux saslauthd: saslauthd[25717] :cache_commit    :
lookup committed
May 28 18:40:52 tux saslauthd: saslauthd[25717] :cache_un_lock   :
attempting to release lock on slot: 1414
May 28 18:40:52 tux saslauthd: saslauthd[25717] :do_auth         : auth
success: [user=andrew at korose.net] [service=imap] [realm=] [mech=pam]
May 28 18:40:52 tux saslauthd: saslauthd[25717] :do_request      :
response: OK




Here is my /etc/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: saslauthd
sasl_mech_list: PLAIN
unixhierarchysep: yes
autocreatequota: 20000
virtdomains: userid
defaultdomain: tux.uunet.co.ke
servername: tux.uunet.co.ke
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt

Any ideas why and how I can solve this problem?

-- 
Andrew Koros	  
Systems Developer

UUNET KENYA LTD
2nd Floor Parkside Towers
Mombasa Road, Nairobi

Tel: +254 20 69088618
Fax: +254 20 69088001
Email: akoros at ke.uu.net   

http://www.uunet.co.ke

NOTICE: "The contents of this e-mail and any accompanying documentation is
confidential and any use thereof, in whatever form, by anyone other than the
addressee for whom it is intended, is strictly prohibited."

|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|   / /  (_)__  __ ____  __ |  
|  / /__/ / _ \/ // /\ \/ / | Freedom to
| /____/_/_//_/\_,_/ /_/\_\ | Experiment
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list