Skrevet av Emne: qmailscanner/SpamAssassin not scanning all messages  (Lest 4353 ganger)

ATC

  • Gjest
qmailscanner/SpamAssassin not scanning all messages
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • When using qmailscanner with SpamAssassin to detect SPAM, some messages do not appear to get scanned properly. Compare the log entries below:

    Oct  5 04:06:18 hermes qmail-scanner: Clear:SA:1(9.9/5.0): 33.53939 1772 ###@###.com ###@###.com veni vidi vici msg-id.###.com:961

    Oct  5 04:05:32 hermes qmail-scanner: Clear: 0.023247 1863 ###@###.com ###@###.com veni vidi vici msg-id.###.com:899



    ATC

    • Gjest
    [Solved] qmailscanner/SpamAssassin not scanning all messages
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • By default, qmail-scanner does not run SpamAssassin on messages from hosts that are in the list of RELAYCLIENTS. This means that if there is an open relay somewhere in those networks, the spam does not get tagged.

    Change this behaviour by editing
    "/var/qmail/bin/qmail-scanner-queue.pl"
    as follows. Change this:

    sub spamassassin {
      return if (defined($ENV{'RELAYCLIENT'}));

    to this:

    sub spamassassin {
      # return if (defined($ENV{'RELAYCLIENT'}));

    Save the file, and ALL messages get scanned. Note that this means even outgoing messages get scanned, this is not a big problem IMHO...