4 msgClient sporadically unknown
2 msgdisappearing admin mail
1 msgVirtual mailing list from SQL query
13 msgthe most popular domainkey signer?
2 msgAlias to nonexistent user
8 msgConfiguration... any issues or suggestions?
3 msgScript to 'click' on a URL in an e-mail?
2 msgLots of Connection Refused messages
4 msgGet rid of messages in Cyrillic?
6 msgDisabling cleanup of messages?
4 msgdomain name not appending for internal messages
2 msgOT: help with understanding domain key implicat...
7 msgrejecting spam that doesn't include the recipie...
4 msgQuestion: rejecting email normally, then callin...
3 msgdeny sender
7 msgPostfix SMTP service unavailable
4 msgcontrolling spamming using sender_access file
2 msgaddress not listed for hostname

Best method to handle invalid HELO hostnames?
\ Justin Piszcz (16 Mar 2008)
. \ mouss (16 Mar 2008)
. . \ Justin Piszcz (16 Mar 2008)

3 msgHow to block certain tld's
Subject:Re: Best method to handle invalid HELO hostnames?
Group:Postfix-users
From:Justin Piszcz
Date:16 Mar 2008


 


On Sun, 16 Mar 2008, mouss wrote:

> smtpd_restrictions_classes =
> ...
> reject_unauth_destination
> ...
> check_helo_access pcre:/etc/postfix/maps/pcre/helo_acl
> ...
>
>
> # literal IP
> /^[/ reject_unknown_client, greylist
>
> # bogus TLDs
> /\.(arpa|invalid|example|localhost|test|localdomain)$/ REJECT ...
>
> # probably misconfigured.
> /^localhost\./ reject_unknown_helo_hostname, reject_unknown_client
>
> # Two label helo should resolve
> /^[^\.]*\.[^\.]+$/ reject_unknown_helo_hostname
>
> # skip common gTLDs
> /\.(com|org|net|info|edu|gov|mil)$/ DUNNO
>
> # skip cc TLDs
> /\.[a-z]{2}$/ DUNNO
>
> # the rest must resolve
> /./ reject_unknown_helo_hostname
>
>

Extremely useful, thank you.

Justin.


© 2004-2008 readlist.com