|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: catch-all with virtual domains
From: Sam Nilsson (sam
servingpeace.com)
Date: Sun Jan 02 2005 - 18:11:26 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Pierre Moermans wrote:
> Hello all,
>
> I would like to configure postfix to have a catch-all address per
> virtual domain.
>
> I've read some threads about that (one of it is
> http://www.irbs.net/internet/postfix/0410/0907.html) and it seems that
> one solution for it is to have the same content in the
> virtual_alias_maps and virtual_mailbox_maps.
>
> I did that, but I still have the same problem: all addresses, even
> aliased ones are sent to the catch-all address.
>
> I use postfix 2.1.5-3 and my config can be found below.
>
> Could anyone tell me what I missed, or any way to make it work ?
I looked at the archives that you referenced, and some of my answer
seems to be missing! I guess it doesn't format correctly and isn't
displayed.
In order to use a catchall address, each valid mailbox must have an
entry in virtual_alias_maps. For this entry, the key must equal the
email address, and the value must *also* equal the email address.
Here is a pseudo mysql virtual_alias_maps example:
|---------------------------------------------------|
| alias | deliverTo |
|-----------------------|---------------------------|
|
domain.tld | catchallbox
something.tld |
| realbox
domain.tld | realbox
domain.tld |
| anotherbox
domain.tld | anotherbox
domain.tld |
| alias
domain.tld | realbox
domain.tld |
|---------------------------------------------------|
It seems strange, but if that isn't there, postfix won't find the box
listed, but it *will* find the catchall alias as I think you have
experienced.
- Sam Nilsson
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]