postfix-users March 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Problem with Postfix/Cyrus-imap setup

Re: Problem with Postfix/Cyrus-imap setup

From: Ansgar Wiechers <lists_at_nospam>
Date: Wed Mar 10 2010 - 14:05:28 GMT
To: postfix-users@postfix.org

On 2010-03-10 Gijs wrote:
> virtual_alias_maps = hash:/etc/postfix/virtual
> virtual_mailbox_domains = mydomain.com myotherdomain.com
> virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp
>
> /etc/postfix/virtual:
> test@mydomain.com someuser
> @mydomain.com catchalluser
>
> info@myotherdomain.com someotheruser@myotherdomain.com
> @myotherdomain.com catchalluser@myotherdomain.com
>
> The mail to test@mydomain.com works as it should, but the mail to
> info@myotherdomain.com always ends up in catchalluser@myotherdomain.com.
> If I comment the catchall line for @myotherdomain.com, then it does get
> delivered to the correct address.
>
> Does anyone know what the problem might be?

Did you try Postfix example configuration for virtual mailboxes?

  http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox

I think you're supposed to use $virtual_mailbox_maps rather than
$virtual_alias_maps for virtual mailboxes.

Regards
Ansgar Wiechers
-- "Abstractions save us time working, but they don't save us time learning." --Joel Spolsky