Hi Viktor,
I never used this but am now curious — in reading the docs on this, it
looks like the proper content in the “{ }” fields would be the IP or
FQDN to\from one wishes to restrict traffic — do I have this correct?
On 18 Sep 2020, at 9:09, Viktor Dukhovni wrote:
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.