[BlueOnyx:24724] Re: Block By Domain Name Extension

David Hahn blueonyx at sb9.com
Tue Jan 19 14:58:02 -05 2021


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

-- 
---
TIA
David Hahn - PageKeeper Service
----




More information about the Blueonyx mailing list