On 2007-04-30 22:35:20 +0200, Hans Salvisberg wrote:
> Some of my clients use outgoing SMTP; they access from changing 
> residential IPs and do TLS and then SMTPAUTH via the auth_imap plugin. 
> I've just installed Peter's denysoft_greylist, and now I find that 
> they're being greylisted, which doesn't make sense.

Indeed. The plugin provides two ways to exempt a a client from
greylisting:

1) It checks if the client is a "relayclient". This is
   probably the method you want to use, as plugins which do
   authentication should mark the client as a relayclient. 

   However, it uses the obsolete method of checking the environment,
   so try changing $ENV{RELAYCLIENT} into
   $self->qp->connection->relay_client() and see if that works.

2) It also checks the connection note 'client_options'. So you could
   write a plugin which does something like this:

    if (client_should_not_be_greylisted()) {
        my $co = $self->qp->connection->notes('client_options') || {};
        $co->{denysoft_greylist}{skip} = 1;
        $self->qp->connection->notes('client_options', $co);
    }

    The client_options plugin does this, but it uses the client IP
    address and domain name, not authentication.

        hp



-- 
   _  | Peter J. Holzer    | I know I'd be respectful of a pirate 
|_|_) | Sysadmin WSR       | with an emu on his shoulder.
| |   | [EMAIL PROTECTED]         |
__/   | http://www.hjp.at/ |    -- Sam in "Freefall"

Attachment: signature.asc
Description: Digital signature

Reply via email to