|Main Archive Page > Month Archives > postfix-users archives|
I'm trying to configure Postfix to accept mail for addresses matching the /^prefix-.+@.+$/ regex only.
I can do this with:
virtual_alias_maps = regexp:/etc/postfix/virtual
virtual_maps = regexp:/etc/postfix/virtual
mydestination = $myhostname, localhost.$mydomain, localhost, regexp:/etc/postfix/domains
cat domains (since we want to accept mail for all domains):
However, with that catch-all domain entry, I'm not able to send out mail, since everything is delivered locally.
Without the catch-all domain entry, I'm able to send out mail, but Postfix won't accept mail for /^prefix-.+@.+$/ (from remote).
How can I configure postfix to accept mail for /^prefix-.+@.+$/ users, and be able to send out mail to a proper MX?
-- Tomasz Chmielewski http://wpkg.org