Postfix cyrus virtual mailbox domains problem
simon.matter at ch.sauter-bc.com
Thu Jul 22 01:07:40 EDT 2004
> I've been going around and around this problem for so long it's making
> me dizzy ...
> I have Postfix set up with
> virtual_mailbox_domains = /usr/local/etc/postfix/virtual_domains
> virtual_mailbox_base = /var/mail/virtual/domain
> virtual_mailbox_maps = hash:/usr/local/etc/postfix/virtual_mailbox
> virtual_minimum_uid = 100
> virtual_uid_maps = static:5000
> virtual_gid_maps = static:5000
> virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
> vuname at my_v_domain.tld my_v_domain.tld/user/vuname/
> I have set up imapd to use partition as follows:
> partition-vpart: /var/mail/virtual
> And created mailbox in cyradm as follows:
> localhost> cm user.vuname at my_v_domain.tld vpart
> localhost> sam user.vuname at my_v_domain.tld vuname at my_v_domain.tld all
> So when a mail is sent to vuname at my_v_domain.tld it appears in the
> directory /var/mail/virtual/domain/my_v_domain/user/vuname
> but cyrus cannot see it as it's in the subdirectory "new".
> Anyway I have a feeling I'm barking up the wrong tree here. Just how
Forget about the virtual maildir stuff in postfix, cyrus doesn't use
maildir but has it's own message store and works more like database than
like a fileserver application - you never access any files directly. What
you want is using LMTP as mail delivery protocol which you configure
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
It's that easy, no more messing with directories or uids.
> should I be letting cyrus find mail delivered by postfix "virtual"
> agent (as in this case)? Is there something stupid about my setup, other
> than I have a feeling cyrus and postfix aren't meant to share the same
> directory for mail storage.
> Any help greatly appreciated.
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