I'm trying to implement a solution for a noreply email address - email@example.com
- to be sent to /dev/null on my MX server.
I have postfix setup using virtual domains which queries a remote mysql server running PostfixAdmin to administer the virtual domains.
In postfixadmin I have setup a real mailbox for firstname.lastname@example.org
I have also setup an alias - email@example.com
- for the firstname.lastname@example.org
Using the setup below mail is successfully being DISCARDed fine when email is addressed directly to email@example.com
before the MX server attempts to deliver it via LMTP to my remote mail store.
But when the mail is sent to the alias - firstname.lastname@example.org
- and includes orig_to (see below) the mail is NOT being DISCARDed.
Can anyone tell me the correct way to do this so it also catches mail when it has been aliased?
The regex below is "supposed" to catch ANY email accepted by this MX server addressed to any valid mailbox - email@example.com