On 2011-11-16 18:07, Mark2 wrote:
Hi all,
I google and couldn't find any answer about how to configurate the postfix to
forward wildcard emails to anther email account.
I cannot use catchall account because I have 3 seperate email accounts to deal
with different bounced email purpose. I tried the alias and didn't work.
That's what I would like to do:
xxxx_re...@mymail.com --> re...@mymail.com
xxxx_nore...@mymail.com --> nore...@mymail.com
xxx_s...@mymail.com --> s...@mymail.com
That's what PCRE/regex tables are for.
virtual_alias_maps = pcre:/etc/postfix/pcre_map, ...
And in /etc/postfix/pcre_map:
/[^_]+_re...@mymail.com/ re...@mymail.com
/[^_]+_nore...@mymail.com/ nore...@mymail.com
/[^_]+_s...@mymail.com/ s...@mymail.com
--
J.