Hi Brian,
I hope the filter is working for you!
I think transaction filtering is great. it has little overhead on the server and allows Mercury to drop any matching connections without having to receive the body of the email. A couple of filters will blitz a huge amount of junk. I use the following two filters:-
H, "*.*", RSN, "554 Bad HELO/EHLO format - connection dropped."
This first one says that if the HELO/EHLO greating does NOT contain a dot or period, reject the connection. This gets rid of all the common greatings like USER, WINDOWS, SERVER etc. as well behaved mail servers will provide a FQDN as their greating, so will have at least one dot in them.
H, "*[0-9]+.[0-9]+.[0-9]+.[0-9]*", BS, "554 Bad HELO/EHLO format - connection dropped."
This next one is a variation on the IP address greating provided above, except that this works for a greating with any IP address in it. (Caution here though, as Thunderbird, for instance, provides the local IP address of the machine it is running on as its greating. The way around this is to define and allow connections from your local subnets in the connection control tab of MercuryS, and also check Exempt from transaction filtering for those ranges)
I have a few other more specific filters defined, but these two kill most all of the rubbish.
John.
<p>Hi Brian,</p><p>I hope the filter is working for you!</p><p>I think transaction filtering is great. it has little overhead on the server and allows Mercury to drop any matching connections without having to receive the body of the email. A couple of filters will blitz a huge amount of junk. I use the following two filters:-</p><p>H, "*.*", RSN, "554 Bad HELO/EHLO format - connection dropped."
</p><p>This first one says that if the HELO/EHLO greating does NOT contain a dot or period, reject the connection. This gets rid of all the common greatings like USER, WINDOWS, SERVER etc. as well behaved mail servers will provide a FQDN as their greating, so will have at least one dot in them.
</p><p>H, "*[0-9]+.[0-9]+.[0-9]+.[0-9]*", BS, "554 Bad HELO/EHLO format - connection dropped." </p><p>This next one is a variation on the IP address greating provided above, except that this works for a greating with any IP address in it. (Caution here though, as Thunderbird, for instance, provides the local IP address of the machine it is running on as its greating. The way around this is to define and allow connections from your local subnets in the connection control tab of MercuryS, and also check Exempt from transaction filtering for those ranges)
</p><p>I have a few other more specific filters defined, but these two kill most all of the rubbish.</p><p>John.
</p>