On Wed, Jan 29, 2014 at 12:31:06PM -0500, Wietse Venema wrote:

> > mail from: [email protected]"
> > rcpt to : "[email protected]", "[email protected]", "[email protected]"
> > 
> > I want to
> > 
> > "[email protected]" and "[email protected]"  receive this mail.
> > but not "[email protected]"
> 
> This is what it looks like in SMTP, which requires ONE address
> per RCPT TO command:
> 
>     MAIL FROM:<[email protected]>
>     250 Sender OK
>     RCPT TO:<[email protected]>
>     250 Recipient OK
>     RCPT TO:<[email protected]>
>     250 Recipient OK
>     RCPT TO:<[email protected]>
>     550 Recipient not accepted
> 
> You can implement this with 
> 
> /etc/postfix/main.cf:
>     smtpd_recipient_restrictions =
>         permit_mynetworks
>         reject_unauth_destination
>         check_recipient_access hash:/etc/postfix/rcpt_access
> 
> /etc/postfix/rcpt_access
>     [email protected]        reject

To make this reject depend on the sender (if that's what the OP
wants), the OP needs restriction classes.

See: http://www.postfix.org/RESTRICTION_CLASS_README.html

-- 
        Viktor.

Reply via email to