i’m adding some custom restrictions to my postfix setup in extra.cf config file mailcow
smtpd_restriction_classes = National, International, Local, Interbank
National = check_recipient_access regexp:/etc/postfix/rules/National, reject
International = check_sender_access regexp:/etc/postfix/rules/International, reject
Local = check_recipient_access regexp:/etc/postfix/rules/Local, reject
Interbank = check_recipient_access regexp:/etc/postfix/rules/Interbank, reject
smtpd_sender_restrictions = check_recipient_access hash:/etc/postfix/rules/Restrictions
smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/rules/Restrictions
When I add a file rule in /etc/postfix/rules/Restrictions or /etc/postfix/rules/Interbank or any other, the Postfix container does not seem to be able to see these files and the rules folder to make postmap them….
I’m missing something, but I’m not sure what. Could you please help me troubleshoot this issue?