Postfix, Cyrus, and virtual domains : verify_user failed: Mailbox does not exist - Help !
Sébastien Rozier
sebastien.rozier at cybergaia.org
Sat Apr 12 09:50:19 EDT 2008
Hello,
I'm trying to setup a Postfix+Cyrus installation (no SQL nor LDAP, only hash files).
I only want to handle virtual domains, no local accounts
My cyrus imap version is 2.3.7 since this is the packaged version for centos/redhat.
My postfix version is 2.3.3 for the same reason.
I'm still having the same problem, after hours and hours of researchs, surfing, and doc reading :
lmtpunix[11333]: verify_user(user.test) failed: Mailbox does not exist
And then mail bounces...
I'm not sure if this is a postfix or cyrus problem, it seems like postfix, through cyrus deliver, doesn't pass @myothervirtualdomain1.com
(This is explained here but I don't know how to make it work : http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/CyrusDeliverWithAt )
Apr 12 15:31:07 atlantis postfix/smtpd[12091]: connect from smtp5-g19.free.fr[212.27.42.35]
Apr 12 15:31:07 atlantis postfix/smtpd[12091]: 8A2F4587D4: client=smtp5-g19.free.fr[212.27.42.35]
Apr 12 15:31:07 atlantis postfix/cleanup[12098]: 8A2F4587D4: message-id=<001001c89ca1$23be2230$0802100a at 237342G>
Apr 12 15:31:07 atlantis postfix/qmgr[9964]: 8A2F4587D4: from=<sebastien.rozier at cybergaia.org>, size=1772, nrcpt=1 (queue active)
Apr 12 15:31:07 atlantis postfix/smtpd[12091]: disconnect from smtp5-g19.free.fr[212.27.42.35]
Apr 12 15:31:07 atlantis lmtpunix[11333]: accepted connection
Apr 12 15:31:07 atlantis lmtpunix[11333]: lmtp connection preauth'd as postman
Apr 12 15:31:07 atlantis lmtpunix[11333]: verify_user(user.test) failed: Mailbox does not exist
Apr 12 15:31:07 atlantis postfix/pipe[12099]: 8A2F4587D4: to=<test at myothervirtualdomain1.com>, relay=cyrus, delay=0.03, delays=0.02/0/0/0.01, dsn=5.6.0, status=bounced (data format error. Command output: test: Mailbox does not exist )
Apr 12 15:31:07 atlantis postfix/cleanup[12098]: 916EB587FA: message-id=<20080412133107.916EB587FA at atlantis.itexcom.fr>
Apr 12 15:31:07 atlantis postfix/bounce[12102]: 8A2F4587D4: sender non-delivery notification: 916EB587FA
Apr 12 15:31:07 atlantis postfix/qmgr[9964]: 916EB587FA: from=<>, size=3604, nrcpt=1 (queue active)
Apr 12 15:31:07 atlantis postfix/qmgr[9964]: 8A2F4587D4: removed
Apr 12 15:31:08 atlantis postfix/smtp[12103]: 916EB587FA: to=<sebastien.rozier at cybergaia.org>, relay=mail.cybergaia.org[82.247.77.102]:25, delay=0.77, delays=0/0/0.59/0.17, dsn=2.0.0, status=sent (250 ok 1208010902 qp 20643)
Apr 12 15:31:08 atlantis postfix/qmgr[9964]: 916EB587FA: removed
I created my mailbox with :
[root at atlantis ~]# su - cyrus
-bash-3.1$ cyradm -u cyrus at myothervirtualdomain1.com localhost
IMAP Password:
localhost.localdomain> lm
localhost.localdomain> cm user.test at myothervirtualdomain1.com
localhost.localdomain> lm
user.test (\HasNoChildren)
localhost.localdomain> exit
-bash-3.1$ ls -laR /var/spool/imap/
/var/spool/imap/:
total 12
drwx------ 3 cyrus mail 4096 Apr 12 15:18 .
drwxr-xr-x 13 root root 4096 Apr 10 23:28 ..
drwx------ 3 cyrus mail 4096 Apr 12 15:18 domain
/var/spool/imap/domain:
total 12
drwx------ 3 cyrus mail 4096 Apr 12 15:18 .
drwx------ 3 cyrus mail 4096 Apr 12 15:18 ..
drwx------ 3 cyrus mail 4096 Apr 12 15:18 m
/var/spool/imap/domain/m:
total 12
drwx------ 3 cyrus mail 4096 Apr 12 15:18 .
drwx------ 3 cyrus mail 4096 Apr 12 15:18 ..
drwx------ 3 cyrus mail 4096 Apr 12 15:18 myothervirtualdomain1.com
/var/spool/imap/domain/m/myothervirtualdomain1.com :
total 12
drwx------ 3 cyrus mail 4096 Apr 12 15:18 .
drwx------ 3 cyrus mail 4096 Apr 12 15:18 ..
drwx------ 3 cyrus mail 4096 Apr 12 15:18 t
/var/spool/imap/domain/m/myothervirtualdomain1.com/t:
total 12
drwx------ 3 cyrus mail 4096 Apr 12 15:18 .
drwx------ 3 cyrus mail 4096 Apr 12 15:18 ..
drwx------ 3 cyrus mail 4096 Apr 12 15:18 user
/var/spool/imap/domain/m/myothervirtualdomain1.com/t/user:
total 12
drwx------ 3 cyrus mail 4096 Apr 12 15:18 .
drwx------ 3 cyrus mail 4096 Apr 12 15:18 ..
drwx------ 2 cyrus mail 4096 Apr 12 15:18 test
/var/spool/imap/domain/m/myothervirtualdomain1.com/t/user/test:
total 20
drwx------ 2 cyrus mail 4096 Apr 12 15:18 .
drwx------ 3 cyrus mail 4096 Apr 12 15:18 ..
-rw------- 1 cyrus mail 4 Apr 12 15:18 cyrus.cache
-rw------- 1 cyrus mail 164 Apr 12 15:18 cyrus.header
-rw------- 1 cyrus mail 96 Apr 12 15:18 cyrus.index
-bash-3.1$
My Cyrus-imapd configuration is :
[root at atlantis ~]# more /etc/cyrus.conf
# standard standalone server implementation
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# this is only necessary if using idled for IMAP IDLE
idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="localhost:imap" prefork=0
imaps cmd="imapd -s" listen="imaps" prefork=5
# pop3 cmd="pop3d" listen="pop3" prefork=3
# pop3s cmd="pop3d -s" listen="pop3s" prefork=1
sieve cmd="timsieved" listen="sieve" prefork=0
# these are only necessary if receiving/exporting usenet via NNTP
# nntp cmd="nntpd" listen="nntp" prefork=3
# nntps cmd="nntpd -s" listen="nntps" prefork=1
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="localhost:lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression,
# Sieve or NNTP
delprune cmd="cyr_expire -E 3" at=0400
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" at=0400
}
(I only want imaps for remote access, imap is only here for cyradm....BTW, if someone can tell me how to use cyradm with imaps, so that I can comment out imap, it would be great !)
[root at atlantis ~]# more /etc/imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus at myothervirtualdomain1.com cyrus at myothervirtualdomain2.com
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: auxprop
sasl_mech_list: PLAIN
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
virtdomains: yes
My postfix configuration is :
[root at atlantis ~]# more /etc/postfix/master.cf
[...]
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
[...]
[root at atlantis ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, mail.$mydomain, www.$mydomain, ftp.$mydomain
mynetworks = 127.0.0.0/8, w.x.y.z/32
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_domains = myothervirtualdomain1.com myothervirtualdomain1.com
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_transport = cyrus
[root at atlantis ~]# more /etc/postfix/vmailbox
test at myothervirtualdomain1.com virtual
test at myothervirtualdomain2.com virtual
(Here, according to doc, "virtual" can be anything else, just a random word to have right-hand value....right ?)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20080412/6e46aa45/attachment.html
More information about the Info-cyrus
mailing list