[Discuss] Postfix Wildcard email forwarding

Tom Metro tmetro-blu at vl.com
Wed Nov 16 16:55:46 EST 2011


Dave Peters wrote:
> ...how to configure postfix to forward wildcard emails to anther email account.
> 
> what I would like to do: 
> 
> xxxx_reply at mymail.com --> reply at mymail.com
> xxxx_noreply at mymail.com --> noreply at mymail.com
> XXX_spam at mymail.com --> spam at mymail.com

So in your example you want the "x" replaced with a wild card that
matches any one character?

This should be doable using a regexp_table[1] or pcre_table[2], with a
file containing a line like (untested):
/...._reply at mymail.com/		reply at mymail.com

and then in main.cf set alias_maps or virtual_alias_maps to
regexp:/path/to/file.

1. http://www.postfix.org/regexp_table.5.html
2. http://www.postfix.org/pcre_table.5.html

 -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/



More information about the Discuss mailing list