[Postfixadmin-devel] noreply@… to /dev/null question
Brought to you by:
christian_boltz,
gingerdog
From: Regan Y. <reg...@gm...> - 2013-10-01 10:04:53
|
I'm trying to implement a solution for a noreply email address - de...@ex... - 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 de...@ex... I have also setup an alias - ma...@ex... - for the de...@ex... mailbox. Using the setup below mail is successfully being DISCARDed fine when email is addressed directly to de...@ex... before the MX server attempts to deliver it via LMTP to my remote mail store. But when the mail is sent to the alias - ma...@ex... - 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 - de...@an... # cat /etc/postfix/devnull-discard /^devnull@.*$/ DISCARD # main.cf smtpd_data_restrictions = check_recipient_access regexp:/etc/postfix/devnull-discard, reject_unauth_pipelining, reject_multi_recipient_bounce, permit Any mail sent to - de...@ex... - is successfully discarded: Oct 1 20:50:26 mta-0 postfix/smtpd[27903]: DEB4FC096: discard: DATA from mail-pd0-f173.google.com[209.85.192.173]: <de...@ex...>: Recipient address triggers DISCARD action; from=<ex...@gm...> to=<de...@ex...> proto=ESMTP helo=<mail-pd0-f173.google.com> But any email message originally sent to - ma...@ex... - is not caught: Oct 1 20:50:35 mta-0 postfix/lmtp[27909]: F3CDDC096: to=<de...@ex...>, orig_to=<ma...@ex...>, relay=X.X.X.X[X.X.X.X]:2424, delay=1.1, delays=0.69/0.01/0.04/0.33, dsn=2.6.0, status=sent (250 2.6.0 <de...@ex...> Message accepted for delivery) Thanks. |