- Dec 17, 2019
In PMG the matching for domains is limted to that domain (and not to it's subdomains) - to match everything that ends in e.g. '.top' use a regex:In sendmail I just add a single line for each TLD or domain into /etc/mail/access and make a hash db from it.
I just want to be able to do that exact same thing in PMG
I know postfix can support an /etc/postfix/access file like that.
Can I do it in PMG or is it disabled?
You can do everything in PMG that you can do with plain postfix - you just need to use the templateing system to adapt the postfix configuration:
I hope this helps!
smtpd_sender_restrictions = permit_mynetworks reject_non_fqdn_sender check_client_access cidr:/etc/postfix/clientaccess check_sender_access hash:/etc/postfix/access # check_sender_access regexp:/etc/postfix/senderaccess
aaa REJECT aarp REJECT abarth REJECT abb REJECT abbott REJECT abbvie REJECT etc.