Postfix + Cyrus + Catchall Addreses

Volker Kindermann ml at
Mon Dec 27 09:05:47 UTC 2004


> I've set up postfix and cyrus properly (I think) and it's working fine
> for valid users.
> In my
> virtual_mailbox_domains =,
> virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp
> virtual_mailbox_maps = hash:/etc/postfix/virtual
> $ cat /etc/postfix/virtual
>		anything

is "anything" a separate virtual user account?

> The above is "supposed" to function as a catchall address. (I'm 
> using that as opposed to actually listing down _all_ the valid addreses
> in my make-believe domain.) 

But only if you created a virtual account called "anything".

> Valid maiboxes in cyrus are:
> user1
> user2
> If I send an email to either user1 or user2, it will work. Cyrus will
> accept the message. But if I send a message to user100(which does not
> exist), it gets rejected. (this is not what I want now, since I want
> catchall addresses)

Which user should get these mails? If it's not a specially created user 
(e.g. postmaster) than it must be user1 oder user2. In this case, do not 
use virtual_mailbox_maps but virtual_alias_maps:

In	virtual_alias_maps = hash:/etc/postfix/virtualaliases

In /etc/postfix/virtualaliases:

And don't forget to build the databases with the postmap command.

> If I replace 
> 	anything
> with
> [1]  	user1 at
> or
> [2]   user1 at
> in [1], nothing is supposed to change, since virtual_mailbox_maps
> will ignore the RHS value.
> in [2], only emails to user1 will be accepted. User2's email will get
> rejected.

That's because virtual_mailbox_maps is not for aliases, only for 
(non-system) mailbox-users.


More information about the fedora-list mailing list