dccifd vs. SpamAsassin on interior systems

Vernon Schryver vjs@calcite.rhyolite.com
Sun Aug 28 01:10:17 UTC 2005


Since version 1.3.9 and 2.3.9, dccifd has ignored the bogus 0.0.0.0
SMTP client IP address provided by SpamAssassin.  That lets dccifd
look for the IP address in a Received header.  This is important
if you want to use SpamAssassin with `dccifd -B` for body (and envelope)
DNS blacklisting or DCC Reputations.

By default dccifd tries to parse the first Received: header.  Some
installations run SpamAssassin+dccifd on interior mail systems where
the right Received: header is the second or later.  The ASCII protocol
used between SpamAssassin and dccifd has a new option.  Each "rcvd-nxt"
option tells dccifd to skip another Received: header.  For example,
with the enclosed patch to version 3.0.4 of SpamAssassin, dccid looks
at the third Received header in an installation that with 3 mail
systems:

    --> External MX servr  --> Internal #1 --> Internal #2 with SA+dccifd


Vernon Schryver    vjs@rhyolite.com


*** lib/Mail/SpamAssassin/Dns.pm        Fri Mar 18 17:06:27 2005
--- lib/Mail/SpamAssassin/Dns.pm-new    Thu Aug 25 09:04:55 2005
***************
*** 678,684 ****
        Peer => $sockpath) || dbg("failed to open socket") && die;
  
      # send the options and other parameters to the daemon
!     $sock->print("header\n") || dbg("failed write") && die; # options
      $sock->print("0.0.0.0\n") || dbg("failed write") && die; #client
      $sock->print("\n") || dbg("failed write") && die; #HELO value
      $sock->print("\n") || dbg("failed write") && die; #sender
--- 678,684 ----
        Peer => $sockpath) || dbg("failed to open socket") && die;
  
      # send the options and other parameters to the daemon
!     $sock->print("header rcvd-nxt rcvd-nxt\n") || dbg("failed write") && die; # options
      $sock->print("0.0.0.0\n") || dbg("failed write") && die; #client
      $sock->print("\n") || dbg("failed write") && die; #HELO value
      $sock->print("\n") || dbg("failed write") && die; #sender




More information about the DCC mailing list

Contact vjs@rhyolite.com by mail or use the form.