just for the sake, here is my /etc/mail/access snippet:

# exclude TLDs Begin
# inserted on Michael's advice by ml 10.5.2019, 8.2019, 10.2019, 1.2020
icu     550 Mail rejected from junk TLD
pro     550 Mail rejected from junk TLD
top     550 Mail rejected from junk TLD
faith   550 Mail rejected from junk TLD
best    550 Mail rejected from junk TLD
show    550 Mail rejected from junk TLD
xyz     550 Mail rejected from junk TLD
club    550 Mail rejected from junk TLD
site    550 Mail rejected from junk TLD
# inserted 1.1.2021
co      550 Mail rejected from junk TLD
legler.co       OK
guru    550 Mail rejected from junk TLD
buzz    550 Mail rejected from junk TLD
cyou    550 Mail rejected from junk TLD
monster 550 Mail rejected from junk TLD
casa    550 Mail rejected from junk TLD
today   550 Mail rejected from junk TLD
work    550 Mail rejected from junk TLD
surf    550 Mail rejected from junk TLD
rest    550 Mail rejected from junk TLD
# exclude TLDs End

the .co domains are rejected, but legler.co isn't (if I did it right)

best regards

で⊃ Meaulnes Legler
Zurich, Switzerland
+41¦0 44 260-1660

On 19.01.21 20:58, David Hahn wrote:
On 1/19/2021 12:24 PM, Michael Stauber wrote:

Hi David,

Is this something that gets over written on a update and works with
postfix?
It'll work in Postfix as well.

Put the lines Larry suggested in /etc/mail/access and then restart
Postfix (if you're using Postfix):

systemctl restart postfix

Restarting Postfix will cause it to parse the sendmail configs and it'll
incorporate these changes into the Postfix config as well.

Thank you Michael and Larry.

These are the steps I used on the 5210R

MAIL ACCESS
# block access to top level domains
cd /etc/mail
vi access

# add this below the local host section
# TLD's We Don't Allow Begin
asia    REJECT
best    REJECT
casa    REJECT
cyou    REJECT
live    REJECT
work    REJECT
# TLD's We Don't Allow End

# hash
makemap hash access.db < access

# restart postfix
systemctl restart postfix



_______________________________________________
Blueonyx mailing list
Blueonyx@mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx

Reply via email to