Postfix cyrus virtual mailbox domains problem

Simon Matter simon.matter at
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
>    virtual_mailbox:
>        vuname at my_v_domain.tld		my_v_domain.tld/user/vuname/
> I have set up imapd to use partition as follows:
>    imapd.conf
>        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
something like
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"
> delivery
> 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.
>    Martin

Cyrus Home Page:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list