Blacklist Hostname/domain

Home » CentOS » Blacklist Hostname/domain
CentOS 1 Comment

Bonjour Bertrand,

Try …………………

acl_check_connection:

deny message = [SNA03] Rejected. Sender’s IP address has no Host name. \
Ask your technical experts to rectify the problem.
condition = ${lookup dnsdb{ptr=$sender_host_address} {0}{1} }

deny message = [SNA04] Rejected. Sender’s Host has No Reverse DNS. \
Ask your technical experts to rectify the problem.
condition = ${if and{{def:sender_host_address}{!def:sender_host_name}} \
{yes}{no}}

deny message = [SNA08] Host name not genuine mail server. Complaints to: \
xxxxx@gmail.com
condition = ${if match{$sender_host_name} \
{^.*[0-9]+[\\-|\\.|_][0-9]+[\\-|\\.|_][0-9]+[\\-|\\.|_]*.*}}
!hosts = EXDIR/hosts.a8
delay = 5s

deny message = [SNA13] Your mail server’s host name, $sender_host_name, \
resembles a home Internet connection. \
Complaints to: xxxxx@gmail.com
condition = ${if match{${lc:$sender_host_name}} \
{(broadband|client|customer|dsl|dyn|dynamic|home|static|user)(\\d|\\.|\\-|ip)} \
{1}{} }
!condition = ${if match{${lc:$sender_host_name}} \
{smarthost|pndsl\\.co\\.uk} {1}{} }

One thought on - Blacklist Hostname/domain