On Wednesday, July 08, 2009 at 23:37 CEST,
     Ignacio Garcia <[email protected]> wrote:

> Hi, we have postfix+mysql with virtual domains. Until now for each
> virtual domain we have created a postmaster account for each domain
> (that means customer), and at the end, none of my customers read the
> mail. I've been trying to find out a way so we do not have to setup
> postmaster accounts for each domain and redirect them to us, something
> like a /^To: postmas...@.*/ REDIRECT [email protected] somewhere (I
> tried header_checks),

No, don't do that. There are several reasons not to use header_checks
for address rewriting.

> but postfix rejects messages with a "Recipient address rejected: User
> unknown in virtual mailbox table;". Does anybody know how can we do
> that without having to declare a postmaster account for each virtual
> domain?

No, you must list the alias for each domain. But that of course doesn't
mean that you have to manually maintain this list. Let the computer work
for you and generate the alias list. The exact implementation depends on
how you store domains today. Someone else has already suggested
something that'll work with MySQL.

-- 
Magnus Bäck
[email protected]

Reply via email to