On Wed, 16 May 2012 08:08:27 -0400, Ben Rosengart wrote:
On Wed, May 16, 2012 at 05:15:39AM -0600, James Lay wrote:
smtpd_recipient_restrictions =
permit_mynetworks,
check_recipient_access regexp:/etc/postfix/reject-users,
from reject-users,
/us...@domain.com/ OK
/us...@domain.com/ OK
/.*@domain/ DISCARD
Postfix appears to discard the entire email. Is there a way to
change this behavior so postfix would still send to the two good
addresses, but discard the one that matches?
Hi James,
The answer is in access(5):
DISCARD optional text...
Claim successful delivery and silently discard the
message. Log
the optional text if specified, otherwise log a generic
message.
Note: this action currently affects all recipients of
the mes-
sage. To discard only one recipient without
discarding the
entire message, use the transport(5) table to direct
mail to the
discard(8) service.
I hope this helps,
Thanks Ben and Brian. I haven't found too much information on
implementing this...I'm guessing it's just adding:
transport_maps = regexp:/etc/postfix/reject-users
?
Does my transport_maps file contain domains or can it contain email
addresses? Thanks all.
James