To block the tld .top you can use this :
Code:(.*)\.top
Is correct?(.*)\@.*top
Just use this.
Code:(\W|^)[\w.+\-]{0,50}@[\w.+\-]{0,50}\.ae(\W|$)
It will block domain @xxx.ae. Add more to block others.
View attachment 13656
(.*)\@.*top
(\W|^)[\w.+\-]{0,50}@[\w.+\-]{0,50}\.top(\W|$)
.+\.top$
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:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine
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.
We use essential cookies to make this site work, and optional cookies to enhance your experience.