> On Feb 11, 2013 7:56 PM, "Miha Valencic" <miha.valen...@gmail.com
> <mailto:miha.valen...@gmail.com>> wrote:
> 
>     Hi!
> 
>     Just want to double check if I am planning this correctly. We're
>     migrating users from one system to another, and want to HOLD
>     incoming messages for certain recipients during migration. For
>     that purpose, we'll create a file with users listed:
> 
>     /hold-users:
>     us...@domain.com <mailto:us...@domain.com> HOLD
>     us...@domain.com <mailto:us...@domain.com> HOLD
>     ...
> 
>     postmap that file and configure this HOLD queue in recipient
>     restrictions:
> 
>     smtpd_recipient_restrictions = check_recipient_access
>     hash:/opt/zimbra/conf/postfix_recipient_access_ldapcheck,
>     reject_non_fqdn_recipient,  permit_sasl_authenticated,
>     permit_mynetworks, reject_unknown_sender_domain,
>     reject_unauth_destination, permit
> 
>     In order to HOLD messages, I need to put "check_recipient_access
>     hash:/hold-users" somewhere. 
> 
>     If I put it before "permit_sasl_authenticated", this should do
>     the trick, correct?
> 
>     Thanks,
>      Miha.
> 


put it under smtpd_sender_restrictions so you don't have to muck
around with your existing smtpd_recipient_restrictions.

# main.cf
smtpd_sender_restrictions =
   check_recipient_access hash:/etc/postfix/hold-users




  -- Noel Jones

Reply via email to