Lanfeust troy:
> hi list,
> 
> is it possible with postix to:
> 
> receive an email from outside for example from
> 
> mail from: sen...@foo.bar"
> rcpt to : "2...@domain.com", "3...@domain.com", "a...@domain.com"
> 
> I want to
> 
> "2...@domain.com" and "3...@domain.com"  receive this mail.
> but not "a...@domain.com"

This is what it looks like in SMTP, which requires ONE address
per RCPT TO command:

    MAIL FROM:<sen...@foo.bar>
    250 Sender OK
    RCPT TO:<2...@domain.com>
    250 Recipient OK
    RCPT TO:<3...@domain.com>
    250 Recipient OK
    RCPT TO:<a...@domain.com>
    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
    a...@domain.com        reject

        Wietse

Reply via email to