Michael Holzt wrote:
I will try again. How can I use the fact that users are authenicated to NOT be rejected even if they should (according to dnsbl)?


Modify the plugins in question. For example in dnsbl:

after
        sub connect_handler {
          my ($self, $transaction) = @_;

add this:
          return DECLINED if ( $transaction->{_relaying} || 
defined($ENV{RELAYCLIENT}) );

A more generic approach which should probably be done with the stock plugins
is to add a parameter which allows one to turn off this plugin for relaying
and/or authenticated users.

Regards
Michael


I added these lines

   if ( $transaction->{_relaying} || exists($ENV{RELAYCLIENT}) )
   {
      $self->log(LOGDEBUG, "RELAYCLIENT set and/or authenticated");
      return DECLINED;
   } else {
      $self->log(LOGDEBUG, "RELAYCLIENT NOT set and NOT authenticated");
   }

All entries in the log says:

  dnsbl plugin: RELAYCLIENT NOT set and NOT authenticated

even if the user is authenticated...?


--
/---------------------------------
/ Hans Sandsdalen - System Manager
/ http://www.spacetec.no
/ http://www.sandsdalen.net
/---------------------------------

Reply via email to