I'm pretty shure you can group restrictions in classes for example: restrictive2 = reject_unknown_sender_domain,reject_unknown_client_hostname But I'm not shure they will be all applicable in the rcpt to stage.
-------- Messaggio Originale -------- Da: [email protected] Inviato: Sat Jul 10 01:34:36 GMT+02:00 2021 A: [email protected] Oggetto: RESTRICTION_CLASS_README End goal is to have different smtpd_*_restrictions per recipient. I see restriction classes might solve this. Can you supply more than one class in the access table? smtpd_restriction_classes = permissive, restrictive1, restrictive2, restrictive3 permissive = permit restrictive1 = reject_unknown_sender_domain restrictive2 = reject_unknown_client_hostname restrictive3 = reject_unknown_helo_hostname smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access /etc/postfix/recipient_access: [email protected] permissive [email protected] restrictive1 restrictive2 restrictive3 I would do this with sql instead of a flat file table and assume it would translate over the same. If this isn't the answer is there another way to go about this?
