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:Best method to handle invalid HELO hostnames?
Group:Postfix-users
From:Justin Piszcz
Date:16 Mar 2008


 
Some examples:

<client=211.55.48.96> <helo=samsung-yg23rdm.kornet>
<client=121.170.104.24> helo=<userodd92mbtcb.domain.invalid>

I realize there is the reject_helo but we all know there are misconfigured
mail servers out there and that could reject legitimate e-mail.

One could go through the list of TLDs and add them into a list and then if
the TLD did not match anything on the list or a regexp then reject the
message.

/\.com$
/\.net$
/\.info$

But new TLDs get added every now and then and that would need to be kept
up to date.

Perhaps a regex would be better?

/^\.[a-zA-Z]{2,4}/

$ echo test-domain.gr | grep -E "\.[a-zA-Z]{2,4}"
test-domain.gr

Or per this:
http://en.wikipedia.org/wiki/Top-level_domain

One could add these to the HELO checks to reject:

RFC 2606 reserves the following four top-level domain names for various
purposes, with the intention that these should never become actual TLDs in
the global DNS:

* .example - reserved for use in examples
* .invalid - reserved for use in obviously invalid domain names
* .localhost - reserved to avoid conflict with the traditional use of
localhost
* .test - reserved for use in tests

Example:
No blocks there.

Invalid:
donna645b6fcff.domain.invalid
lastxp.domain.invalid
user023a8b376a.domainnotset.invalid
user023a8b376a.domainnotset.invalid
userodd92mbtcb.domain.invalid
userodd92mbtcb.domain.invalid

Localhost:
localhost.scwe4.on.cogeco.ca
localhost.scwe4.on.cogeco.ca
mail.localhost
mail.localhost

Test:
test
test

Was curious how others dealt with this?

Thanks,

Justin.


© 2004-2008 readlist.com