natan:
> Hi
> I need block all in incomming to one e-mail like:
> 
> to=<u...@domain.ltd> DISCARD
> but allow:
> from=<u...@domain.ltd>
> 
> At the earliest level as possible only in smtpd_recipient_restrictions ?

smtpd_recipient_restrictions =
    check_recipient_access inline:{
        { u...@domain.ltd = DISCARD }
    } ...other stuff...

However, there is a warning in the Postfix access(5) manpage:

    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.

        Wietse

Reply via email to