On Sat, 15 Nov 2008 14:08:21 -0500
Vincas C(iz(iu-nas <[EMAIL PROTECTED]> wrote:

> I've modified the dns_whitelist_soft plugin to read something similar
> to a postgrey style list of whitelist hosts.  My plugins file mentions
> it right before the greylisting
You should not return OK from a rcpt hook unless you want to accept
this recipient. Your current code accepts every local recipient and
does not check if it exists. It also means that no plugin will run
after this plugin for the "rcpt" hook. 
If you want to go on with plugin processing, just return DECLINED.

        Hanno

P.S.: you probably also want to use $self->qp->connection->remote_host
instead of doing the gethostbyname call yourself, which may return
undef...

Reply via email to