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, -- Ben Rosengart "Like all those possessing a library, Sendmail, Inc. Aurelian was aware that he was guilty of +1 718 431 3822 not knowing his in its entirety [...]" -- Jorge Luis Borges NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.