External Spam Filter Support - Adding Cleanfeed to dnews


Installation Instructions

  1. Install DNEWS 5.1a or later http://netwinsite.com/dnews/stub_dwn.htm
  2. Download the latest cleanfeed to a local directory, e.g. c:\dnews\clean, cleanfeed is available from http://www.exit109.com/~jeremy/news/antispam.html or ftp://ftp.exit109.com/users/jeremy/
  3. In dnews.conf add this line (or similar depending on where you install the cleanfeed files)
    (NT)    filter_cmd c:\perl\bin\perl.exe c:\dnews\clean\cleanfeed
    (UNIX) filter_cmd /usr/local/dnews/clean/cleanfeed
  4. If you are on NT install perl on your computer, apparently a free one is available from http://www.perl.com/CPAN/ports/win32/Standard/x86 or you may find one on the NT resource kit.
  5. In the main cleanfeed script file define $config_dir to where you have installed cleanfeed, e.g. c:\dnews\clean
  6. In cleanfeed.conf set the system types to '1', depending on your system, NT has all three, UNIX just the top two.
        $inn = 1;      
        $highwind = 1;  
        $nntprelay = 1;  # set to 1 for NT, 0 for unix
  7. If you want logging define that in cleanfeed.conf, and make sure you specify a full path
  8. Start dnews, and check the logs, see if it's accepting 'some' items :-)

Note: To change the filter, you will have to stop and start dnews, tellnews reload is not sufficient.

Disclaimer

Cleanfeed is a perl script so it will increase your CPU use and may slow down DNEWS although you might gain as much as there will be less 'junk' for dnews to process.   If performance is affected consider using dmulti so user performance isn't affected. Also the built in spam protection in dnews does much of what cleanfeed does, please don't install cleanfeed unless you really want it for some reason.

Using other filters

You can roll your own filter, or use other standard filters that follow the same mechanism that cleanfeed uses.  A filter is any program that reads the message on STDIN and responds on STDOUT with either "235\r\n" to accept a message or "435\r\n" to reject a message.

On NT the stdin and stdout must be set to binary to preserve the \R\N, exactly 5 characters must make it back to the server or it won't work.

Please note: If DNEWS locks up, try removing your filter particularly if it's not a standard one.

You may also be interested in NoCem support.

Products Downloads Prices Support Company