On 8/27/2010 2:41 PM, pf at alt-ctrl-del.org wrote:
On: August 27, 2010 2:23 PM, I wrote:
Is there any known policy server or add-on, that will change
the tempfail action after a couple of hours, for things like
reject_unknown_client_hostname and
reject_unknown_client_hostname?
I guess it would be an adaptation of greylisting, where.
default unknown client/hostname = DEFER_IF_PERMIT
greyhostclient policy
firstseen timestamp for unknown client/hostname
greyhostclient_delay = 4h
return DEFER_IF_PERMIT during the 4h window.
Then after 4 hours, REJECT is returned instead.
Anything like that out there?
Well, the first half was easy. I just made a few minor changes
to the example greylist.pl.
My greyhelo.pl works from the example test of: perl
greyhelo.pl (bunch of attributes)
But how to call it, only when a client fails
reject_unknown_helo_hostname?
The following does not work:
unknown_helo_hostname_tempfail_action = check_policy_service
unix:private/greyhelo
You'll have to call the policy service for each mail, and
recreate the reject_unknown_* tests in your policy server.
That's the only way you can detect temp failures.
-- Noel Jones