<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm trying to setup a Postfix+Cyrus installation
(no SQL nor LDAP, only hash files).</FONT></DIV>
<DIV><FONT face=Arial size=2>I only want to handle virtual domains, no local
accounts</FONT></DIV>
<DIV><FONT face=Arial size=2>My cyrus imap version is 2.3.7 since this is the
packaged version for centos/redhat.</FONT></DIV>
<DIV><FONT face=Arial size=2>My postfix version is 2.3.3 for the same
reason.</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm still having the same problem, after hours and
hours of researchs, surfing, and doc reading :</FONT></DIV>
<DIV><FONT face=Arial size=2>lmtpunix[11333]: verify_user(user.test) failed:
Mailbox does not exist</FONT></DIV>
<DIV><FONT face=Arial size=2>And then mail bounces...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm not sure if this is a postfix or cyrus problem,
it seems like postfix, through cyrus deliver, doesn't pass @<U><FONT
color=#0000ff>myothervirtualdomain1.com</FONT></U></FONT></DIV>
<DIV><FONT face=Arial size=2>(This is explained here but I don't know how to
make it work : <A
href="http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/CyrusDeliverWithAt">http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/CyrusDeliverWithAt</A> )</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Apr 12 15:31:07 atlantis postfix/smtpd[12091]:
connect from smtp5-g19.free.fr[212.27.42.35]<BR>Apr 12 15:31:07 atlantis
postfix/smtpd[12091]: 8A2F4587D4: client=smtp5-g19.free.fr[212.27.42.35]<BR>Apr
12 15:31:07 atlantis postfix/cleanup[12098]: 8A2F4587D4: message-id=<<A
href="mailto:001001c89ca1$23be2230$0802100a@237342G">001001c89ca1$23be2230$0802100a@237342G</A>><BR>Apr
12 15:31:07 atlantis postfix/qmgr[9964]: 8A2F4587D4: from=<<A
href="mailto:sebastien.rozier@cybergaia.org">sebastien.rozier@cybergaia.org</A>>,
size=1772, nrcpt=1 (queue active)<BR>Apr 12 15:31:07 atlantis
postfix/smtpd[12091]: disconnect from smtp5-g19.free.fr[212.27.42.35]<BR>Apr 12
15:31:07 atlantis lmtpunix[11333]: accepted connection<BR>Apr 12 15:31:07
atlantis lmtpunix[11333]: lmtp connection preauth'd as postman<BR><STRONG>Apr 12
15:31:07 atlantis lmtpunix[11333]: verify_user(user.test) failed: Mailbox does
not exist<BR></STRONG>Apr 12 15:31:07 atlantis postfix/pipe[12099]: 8A2F4587D4:
to=<<A href="mailto:test@itexcom.com">test@myothervirtualdomain1.com</A>>,
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 )<BR>Apr 12 15:31:07
atlantis postfix/cleanup[12098]: 916EB587FA: message-id=<<A
href="mailto:20080412133107.916EB587FA@atlantis.itexcom.fr">20080412133107.916EB587FA@atlantis.itexcom.fr</A>><BR>Apr
12 15:31:07 atlantis postfix/bounce[12102]: 8A2F4587D4: sender non-delivery
notification: 916EB587FA<BR>Apr 12 15:31:07 atlantis postfix/qmgr[9964]:
916EB587FA: from=<>, size=3604, nrcpt=1 (queue active)<BR>Apr 12 15:31:07
atlantis postfix/qmgr[9964]: 8A2F4587D4: removed<BR>Apr 12 15:31:08 atlantis
postfix/smtp[12103]: 916EB587FA: to=<<A
href="mailto:sebastien.rozier@cybergaia.org">sebastien.rozier@cybergaia.org</A>>,
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)<BR>Apr 12 15:31:08 atlantis
postfix/qmgr[9964]: 916EB587FA: removed<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I created my mailbox with :</FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2>[root@atlantis ~]# su - cyrus<BR>-bash-3.1$
cyradm -u <A
href="mailto:cyrus@myothervirtualdomain1.com">cyrus@myothervirtualdomain1.com</A>
localhost<BR>IMAP
Password:<BR>
localhost.localdomain> lm<BR>localhost.localdomain> cm <A
href="mailto:user.test@myothervirtualdomain1.com">user.test@myothervirtualdomain1.com</A><BR>localhost.localdomain>
lm<BR>user.test (\HasNoChildren)<BR>localhost.localdomain>
exit<BR>-bash-3.1$ ls -laR /var/spool/imap/<BR>/var/spool/imap/:<BR>total
12<BR>drwx------ 3 cyrus mail 4096 Apr 12 15:18 .<BR>drwxr-xr-x 13
root root 4096 Apr 10 23:28 ..<BR>drwx------ 3 cyrus mail 4096 Apr
12 15:18 domain</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>/var/spool/imap/domain:<BR>total 12<BR>drwx------
3 cyrus mail 4096 Apr 12 15:18 .<BR>drwx------ 3 cyrus mail 4096 Apr 12 15:18
..<BR>drwx------ 3 cyrus mail 4096 Apr 12 15:18 m</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>/var/spool/imap/domain/m:<BR>total
12<BR>drwx------ 3 cyrus mail 4096 Apr 12 15:18 .<BR>drwx------ 3 cyrus mail
4096 Apr 12 15:18 ..<BR>drwx------ 3 cyrus mail 4096 Apr 12 15:18 <U><FONT
color=#0000ff>myothervirtualdomain1.com</FONT></U> </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>/var/spool/imap/domain/m/<U><FONT
color=#0000ff>myothervirtualdomain1.com</FONT></U> :<BR>total
12<BR>drwx------ 3 cyrus mail 4096 Apr 12 15:18 .<BR>drwx------ 3 cyrus mail
4096 Apr 12 15:18 ..<BR>drwx------ 3 cyrus mail 4096 Apr 12 15:18
t</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>/var/spool/imap/domain/m/<U><FONT
color=#0000ff>myothervirtualdomain1.com</FONT></U>/t:<BR>total
12<BR>drwx------ 3 cyrus mail 4096 Apr 12 15:18 .<BR>drwx------ 3 cyrus mail
4096 Apr 12 15:18 ..<BR>drwx------ 3 cyrus mail 4096 Apr 12 15:18
user</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>/var/spool/imap/domain/m/<U><FONT
color=#0000ff>myothervirtualdomain1.com</FONT></U>/t/user:<BR>total
12<BR>drwx------ 3 cyrus mail 4096 Apr 12 15:18 .<BR>drwx------ 3 cyrus mail
4096 Apr 12 15:18 ..<BR>drwx------ 2 cyrus mail 4096 Apr 12 15:18
test</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>/var/spool/imap/domain/m/<U><FONT
color=#0000ff>myothervirtualdomain1.com</FONT></U>/t/user/test:<BR>total
20<BR>drwx------ 2 cyrus mail 4096 Apr 12 15:18 .<BR>drwx------ 3 cyrus mail
4096 Apr 12 15:18 ..<BR>-rw------- 1 cyrus mail 4 Apr 12
15:18 cyrus.cache<BR>-rw------- 1 cyrus mail 164 Apr 12 15:18
cyrus.header<BR>-rw------- 1 cyrus mail 96 Apr 12 15:18
cyrus.index<BR>-bash-3.1$</FONT></DIV></BLOCKQUOTE>
<DIV><FONT face=Arial size=2>My Cyrus-imapd configuration is :</FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2>[root@atlantis ~]# more /etc/cyrus.conf<BR>#
standard standalone server implementation</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>START {<BR> # do not delete this
entry!<BR> recover cmd="ctl_cyrusdb
-r"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> # this is only necessary if using idled
for IMAP IDLE<BR> idled
cmd="idled"<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># UNIX sockets start with a slash and are put
into /var/lib/imap/sockets<BR>SERVICES {<BR> # add or remove based on
preferences<BR>
imap cmd="imapd"
listen="localhost:imap" prefork=0<BR>
imaps cmd="imapd -s"
listen="imaps" prefork=5<BR>#
pop3 cmd="pop3d" listen="pop3"
prefork=3<BR>#
pop3s
cmd="pop3d -s" listen="pop3s" prefork=1<BR>
sieve cmd="timsieved"
listen="sieve" prefork=0</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> # these are only necessary if
receiving/exporting usenet via NNTP<BR>#
nntp cmd="nntpd" listen="nntp"
prefork=3<BR>#
nntps
cmd="nntpd -s" listen="nntps" prefork=1</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> # at least one LMTP is required for
delivery<BR># lmtp
cmd="lmtpd" listen="localhost:lmtp" prefork=0<BR>
lmtpunix cmd="lmtpd"
listen="/var/lib/imap/socket/lmtp" prefork=1</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> # this is only necessary if using
notifications<BR># notify
cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp"
prefork=1<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>EVENTS {<BR> # this is required<BR>
checkpoint cmd="ctl_cyrusdb -c" period=30</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> # this is only necessary if using
duplicate delivery suppression,<BR> # Sieve or NNTP<BR>
delprune cmd="cyr_expire -E 3"
at=0400</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> # this is only necessary if caching TLS
sessions<BR> tlsprune cmd="tls_prune"
at=0400<BR>}</FONT></DIV><FONT face=Arial size=2></FONT></BLOCKQUOTE>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial size=2>(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 !)</DIV>
<DIV dir=ltr><BR></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"></FONT>
<DIV><FONT face=Arial size=2>[root@atlantis ~]# more
/etc/imapd.conf<BR>configdirectory: /var/lib/imap<BR>partition-default:
/var/spool/imap<BR>admins: <A
href="mailto:cyrus@myothervirtualdomain1.com">cyrus@myothervirtualdomain1.com</A>
<A
href="mailto:cyrus@universe-it.fr">cyrus@myothervirtualdomain2.com</A><BR>sievedir:
/var/lib/imap/sieve<BR>sendmail: /usr/sbin/sendmail<BR>hashimapspool:
true<BR>sasl_pwcheck_method: auxprop<BR>sasl_mech_list:
PLAIN<BR>tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem<BR>tls_key_file:
/etc/pki/cyrus-imapd/cyrus-imapd.pem<BR>tls_ca_file:
/etc/pki/tls/certs/ca-bundle.crt<BR>virtdomains: yes</FONT></DIV></BLOCKQUOTE>
<DIV><FONT face=Arial size=2>My postfix configuration is :</FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2>[root@atlantis ~]# more
/etc/postfix/master.cf<BR>[...]</FONT></DIV>
<DIV><FONT face=Arial size=2>cyrus unix
- n
n -
- pipe<BR> user=cyrus
argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension}
${user}<BR>[...]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[root@atlantis ~]# postconf -n<BR>alias_database
= hash:/etc/aliases<BR>alias_maps = hash:/etc/aliases<BR>command_directory =
/usr/sbin<BR>config_directory = /etc/postfix<BR>daemon_directory =
/usr/libexec/postfix<BR>debug_peer_level = 2<BR>html_directory =
no<BR>inet_interfaces = all<BR></FONT><FONT face=Arial size=2>mail_owner =
postfix<BR>mailq_path = /usr/bin/mailq.postfix<BR>manpage_directory =
/usr/share/man<BR>mydestination = $myhostname, localhost.$mydomain, localhost,
mail.$mydomain, <A href="http://www.$mydomain">www.$mydomain</A>, <A
href="ftp://ftp.$mydomain">ftp.$mydomain</A><BR>mynetworks = 127.0.0.0/8,
w.x.y.z/32<BR>newaliases_path = /usr/bin/newaliases.postfix<BR>queue_directory
= /var/spool/postfix<BR>readme_directory =
/usr/share/doc/postfix-2.3.3/README_FILES<BR>sample_directory =
/usr/share/doc/postfix-2.3.3/samples<BR>sendmail_path =
/usr/sbin/sendmail.postfix<BR>setgid_group =
postdrop<BR>unknown_local_recipient_reject_code = 550<BR>virtual_alias_maps =
hash:/etc/postfix/virtual<BR>virtual_mailbox_domains =
myothervirtualdomain1.com myothervirtualdomain1.com</FONT><FONT face=Arial
size=2><BR>virtual_mailbox_maps =
hash:/etc/postfix/vmailbox<BR>virtual_transport = cyrus<BR></DIV></FONT>
<DIV><FONT face=Arial size=2>[root@atlantis ~]# more
/etc/postfix/vmailbox<BR><A
href="mailto:test@myothervirtualdomain1.com">test@myothervirtualdomain1.com</A>
virtual<BR><A
href="mailto:test@myothervirtualdomain2.com">test@myothervirtualdomain2.com</A>
</FONT><FONT face=Arial
size=2>virtual</FONT></DIV></BLOCKQUOTE>
<DIV dir=ltr><FONT face=Arial size=2>(Here, according to doc, "virtual" can be
anything else, just a random word to have right-hand value....right
?)</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>