On 6/25/2012 2:03 AM, santosh malavade wrote:
> Hi,
> 
> I am trying to hold messages based on the client and sender address,
> but its not getting in hold queue and getting rejected  :
> 
...
> 
> I have tried to search it on the google, and got one url
> http://comments.gmane.org/gmane.mail.postfix.user/225900 where Noel
> Jones replied giving the following response : 
> 
> HOLD is not absolute and will be overridden by a later REJECT or
> DISCARD action.

Yes, still true.

> 
> I did not understand the said response. 
> 

HOLD does not imply "OK".  You can create smtpd_restriction_classes
that will do both:

# main.cf
smtpd_restriction_classes =
   HOLD_OK

HOLD_OK =
   reject_unauth_destination
   check_client_access static:HOLD
   permit

Then use HOLD_OK as the result in your table lookup



  -- Noel Jones

Reply via email to