:-) On 9/18/20 6:09 PM, 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 }, rejectif (MAIL_FROM==b)smtpd_sender_restrictions = permit_auth_destination, check_sender_access inline:{ b=OK }, rejectif (RCPT_TO==c)smtpd_recipient_restrictions = permit_auth_destination, check_recipient_access inline:{ c=OK }, reject
Are you quite sure that 'permit_auth_destination' is allowed in 'smtpd_client_restrictions' and 'smtpd_sender_restrictions'??
Even if so *I'm in doubt) are sure it would work as and 'AND'?
if (client's_IP==a)
if (MAIL_FROM==b)
if (RCPT_TO==c)
then relay=OK
(relay if and only if all conditions are met)
?
Seems very suspiciously strange..
Best regards,
Marek
smime.p7s
Description: S/MIME Cryptographic Signature
