On 4/17/2012 1:20 PM, n756...@50mail.com wrote:
> Hey!
> 
> I finally installed a postfix mail server this past weekend.  Pretty
> straightforward with the awesome docs! Well, once ya find it all ;-)
> 
> In my config, I declared 
> 
>    
> smtpd_sender_restrictions=check_recipient_access,hash:/etc/postfix/lists/traps
> 
> with entries in "/etc/postfix/lists/traps",
> 
>     b...@domain.com DISCARD
> 
> Mail sent to that address appears to be accepted, but really gets
> quietly DISCARDed, and processing stops.  Like it's supposed to.
> 
> If there are additional recipients in the TO: list that are not in the
> hash list, they still are delivered.  So if there's a mail sent TO: both
> "b...@domain.com" and "m...@domain.com"  one copy gets accepted for the
> "m...@domain.com" recipient.
> 
> I want to change the behavior so if ANY of the TO: recipient addresses
> are in the hash table the mail is discarded for ALL the recipients,
> accpeted & delivered for noone.

The access(5) man page includes, in part:

       DISCARD optional text...
              Claim  successful delivery and silently discard the
              message.  Log the optional text if specified,  oth-
              erwise log a generic message.

              Note:  this action currently affects all recipients
              of the message.   To  discard  only  one  recipient
              without  discarding  the  entire  message,  use the
              transport(5) table to direct mail to the discard(8)
              service.


So your claim is not supported by the documentation.
http://www.postfix.org/access.5.html

If you wish to make a case that postfix does not behave as
documented, you'll need to provide clear evidence of your claim.

And as food for thought, DISCARD works as documented for me.



  -- Noel Jones

Reply via email to