On 5 Jun 2015, at 14:38, Tech Support wrote:
All;
I am somewhat new to Postfix, so I hope that someone has mercy on me.
I
need to setup a rule such that any inbound email that matches gets
forwarded
to a particular user. That is, I have a host, mail.acme.com and any
email
that contains only digits as the user (ie, 1234567...@mail.acme.com or
will
get forwarded to user 'foobar'. Essentially what I am doing is setting
up an
email to fax server and the recipient is the fax number. I have this
working using sendmail but definitely most people have moved away from
Sendmail in favor of Postfix and I need to support that. Any insight
at all
would be greatly appreciated.
This can be done by pointing virtual_alias_maps at a regex or pcre
table.
See 'man 5 virtual', in particular the section titled "REGULAR
EXPRESSION TABLES"