Page 1 of 1

Modify the Return-Code on Check host in the HELO command...

Posted: 2010-03-18 12:02
by Rainer
Hello form Germany... :)

We are using the Spam-Test: "Check host in the HELO command" and this stops a lot of spam.
I'm checking every day the log for legitimate emails and there's no problem.

But sometimes the DNS is slow and could not get the PTR of the sending IP.
This will be returned by: "550 The host name specified in HELO does not match IP address."

The new Check must be:

1. When the DNS is not timed out and the PTR is wrong: "550 The host name specified in HELO does not match IP address."
2. When the DNS is timed out: "451 The host name specified in HELO does not match IP address."
3. On the next try, pass it only if the HELO does match IP!