On Fri, Sep 18, 2020 at 11:50:02AM +0200, Marek Kozlowski wrote:

> I've been asked a very strange question. According to the best of my 
> knowledge there is no setting but maybe I'm wrong:
> 
> Is it possible the define a very selective relay according to the 
> following pseudo code:
> 
> /* a, b and c are set to some single values */
> if (client's_IP==a)

    smtpd_client_restrictions =
        permit_auth_destination,
        check_client_access inline:{ a=OK },
        reject

>      if (MAIL_FROM==b)

    smtpd_sender_restrictions =
        permit_auth_destination,
        check_sender_access inline:{ b=OK },
        reject

>          if (RCPT_TO==c)

    smtpd_recipient_restrictions =
        permit_auth_destination,
        check_recipient_access inline:{ c=OK },
        reject

-- 
    Viktor.

Reply via email to