[Exim] The wish list

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Hans Morten Kind
Data:  
Para: exim-users
Asunto: [Exim] The wish list
We are using some RBL systems to prevent spam, it is strange
that so many mailservers still allow relay ... Some of our
friendly organizations get into these lists all the time
and often they are very slow to be removed from the RBLs
after upgrading their system.

What I would like is to define some exception rules to the
rbl-checking, re-introducing sender_reject_except. Reject
all mails from the blocked server unless the originators
address is found in sender_reject_except.

Suggested patch below, it seems to be working here. The
obviuos additions to globals.c, globals.h and readconf.c
is not included.

hmk


*** smtp_in.c.orig    Mon Oct  4 20:58:56 1999
--- smtp_in.c    Mon Oct  4 21:03:27 1999
***************
*** 2248,2254 ****
          sender_address);
        break;
        }
! 
      if (host_refuse_all_rcpts || sender_refuse_all_rcpts)
        {
        if (!match_address_list(receiver, receiver_domain,
--- 2248,2266 ----
          sender_address);
        break;
        }
! #ifdef SENDER_REJECT_EXCEPT
!     if (host_refuse_all_rcpts &&
!         match_address_list(sender_address, sender_domain,
!             &sender_reject_except, -1, ':', TRUE)) {
!          host_refuse_all_rcpts = FALSE;
!          log_write(1, LOG_MAIN|LOG_REJECT,
!            "exception list sender %s accepted from <%s>%s%s",
!            receiver,
!            raw_sender,
!            (sender_fullhost != NULL)? " H=" : "",
!            (sender_fullhost != NULL)? host_and_ident() : "");
!     }
! #endif
      if (host_refuse_all_rcpts || sender_refuse_all_rcpts)
        {
        if (!match_address_list(receiver, receiver_domain,