I have a mail server with qmail and vpopmail. I am trying to install qmail-scanner with SpamAssassin and Clam Antivirus. And I think that qmail-scanner is not calling SpamAssassin properly. I tested spamassassin daemon (spamd) and with the command spamc < sample-spam.txt and it is working properly. But when it is called by qmail-scanner the message is delivered but the spamassassin headers aren't added to the mail. I don't know if I misconfigured or screw up something but any help or pointers on how to solve this problem would be much appreciated. I included some part of the qmail-scanner-queue.pl and log files.
Thanks in advance
Daniel
/var/qmail/bin/qmail-scanner-queue.pl
<snip
# This file was auto-generated by:
#
# ./configure --spooldir /var/spool/qmailscan --qmaildir /var/qmail --bindir /var/qmail/bin --qmail-queue-binary /var/qmail/bin/qmail-queue --admin support --domain cooptel.qc.ca --notify sender --local-domains cooptel.qc.ca --silent-viruses auto --lang en_GB --debug 1 --unzip 1 --add-dscr-hdrs 1 --archive 0 --redundant no --log-details yes --log-crypto 0 --fix-mime 1 --scanners "clamscan,fast_spamassassin" --install 1
...
#Array of virus scanners used must point to subroutines
my @scanner_array=("clamscan_scanner","spamassassin");
...
my $clamscan_binary='/usr/local/bin/clamscan';
my $clamscan_options="-r --disable-summary --max-recursion=10 --max-space=1000000";
my $clamuko_binary='';
my $clamuko_options="-r --disable-summary --max-recursion=10 --max-space=1000000";
my $spamc_binary='/usr/local/bin/spamc';
my $spamc_options=' -f';
my $spamc_subject='';
my $spamassassin_binary='/usr/local/bin/spamassassin';
/var/spool/qmailscan/qmail-queue.log
Mon, 08 Dec 2003 12:06:24 -0500:26679: +++ starting debugging for process 26679 by uid=301 at Mon, 08 Dec 2003 12:06:24 -0500
Mon, 08 Dec 2003 12:06:24 -0500:26679: setting UID to EUID so subprocesses can access files generated by this script
Mon, 08 Dec 2003 12:06:24 -0500:26679: program name is qmail-scanner-queue.pl, version 1.20
Mon, 08 Dec 2003 12:06:24 -0500:26679: incoming SMTP connection from via SMTP from 205.236.184.39
Mon, 08 Dec 2003 12:06:24 -0500:26679: w_c: mkdir /var/spool/qmailscan/tmp/yoggi107090318446126679
Mon, 08 Dec 2003 12:06:24 -0500:26679: w_c: start dumping incoming msg into /var/spool/qmailscan/working/tmp/yoggi107090318446126679 [1070903184.77416]
Mon, 08 Dec 2003 12:06:24 -0500:26679: w_c: primary Content-Type of text/plain found
Mon, 08 Dec 2003 12:06:24 -0500:26679: w_c: rename new msg from /var/spool/qmailscan/working/tmp/yoggi107090318446126679 to /var/spool/qmailscan/working/new/yoggi107090318446126679 [1070903184.77536]
Mon, 08 Dec 2003 12:06:24 -0500:26679: d_m: starting /usr/local/bin/reformime -x/var/spool/qmailscan/tmp/yoggi107090318446126679/ </var/spool/qmailscan/working/new/yoggi107090318446126679 [1070903184.77553]
Mon, 08 Dec 2003 12:06:24 -0500:26679: d_m: finished /usr/local/bin/reformime -x/var/spool/qmailscan/tmp/yoggi107090318446126679/ [1070903184.78061]
Mon, 08 Dec 2003 12:06:24 -0500:26679: d_m: Manually unpack any zip files as some virus scanners don't do zip under Unix!
Mon, 08 Dec 2003 12:06:24 -0500:26679: d_m: unpacking message took 0.005311 seconds
Mon, 08 Dec 2003 12:06:24 -0500:26679: unsetting QMAILQUEUE env var
Mon, 08 Dec 2003 12:06:24 -0500:26679: g_e_h: return-path is "[EMAIL PROTECTED]", recips is "[EMAIL PROTECTED]"
Mon, 08 Dec 2003 12:06:24 -0500:26679: from="Daniel Poulin" <[EMAIL PROTECTED]>,subj=test, x-qmail-scanner-message-id=<[EMAIL PROTECTED]> via SMTP from 205.236.184.39
Mon, 08 Dec 2003 12:06:24 -0500:26679: This is a PLAIN text message (because it's either not mime, or is text/plain), skip virus scanners - but not SA
Mon, 08 Dec 2003 12:06:24 -0500:26679: ini_sc: start scanning
Mon, 08 Dec 2003 12:06:24 -0500:26679: ini_sc: recursively scan the directory /var/spool/qmailscan/tmp/yoggi107090318446126679/
Mon, 08 Dec 2003 12:06:24 -0500:26679: scanloop: starting scan of directory "/var/spool/qmailscan/tmp/yoggi107090318446126679"...
Mon, 08 Dec 2003 12:06:24 -0500:26679: scanloop: scanner=clamscan_scanner,plain_text_msg=1
Mon, 08 Dec 2003 12:06:24 -0500:26679: scanloop: scanner=spamassassin,plain_text_msg=1
Mon, 08 Dec 2003 12:06:24 -0500:26679: scanloop: finished scan of "/var/spool/qmailscan/tmp/yoggi107090318446126679"...
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: starting scan of directory "/var/spool/qmailscan/tmp/yoggi107090318446126679"...
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: '81:ILOVEYOU' = 'Virus-subject' = 'Love Letter Virus/Trojan'
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: type is a header!
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: checking for objects containing subject: ILOVEYOU
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: '82:message/partial.*' = 'Virus-content-type' = 'Message/partial MIME attachments blocked by policy'
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: type is a header!
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: checking for objects containing content-type: message/partial.*
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: '85:.{100,}' = 'Virus-date' = 'MIME Header Buffer Overflow'
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: type is a header!
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: checking for objects containing date: .{100,}
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: '86:.{100,}' = 'Virus-mime-version' = 'MIME Header Buffer Overflow '
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: type is a header!
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: checking for objects containing mime-version: .{100,}
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: '87:.{100,}' = 'Virus-resent-date' = 'MIME Header Buffer Overflow'
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: type is a header!
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: checking for objects containing resent-date: .{100,}
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: '90:[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]' = 'Virus-to' = 'BadTrans Trojan exploit!'
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: type is a header!
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: checking for objects containing to: [EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: 'eicar.com' = '69' = 'EICAR Test Virus'
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: type is a size!
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: 'happy99.exe' = '10000' = 'Happy99 Trojan'
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: type is a size!
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: 'zipped_files.exe' = '120495' = 'W32/ExploreZip.worm.pak virus'
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: type is a size!
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: skipping auto-generated file 1070903184.26681-0.yoggi
Mon, 08 Dec 2003 12:06:24 -0500:26679: p_s: finished scan of dir "/var/spool/qmailscan/tmp/yoggi107090318446126679" in 0.001801 secs
Mon, 08 Dec 2003 12:06:24 -0500:26679: ini_sc: scanning message took 0.002062 seconds
Mon, 08 Dec 2003 12:06:24 -0500:26679: q_r: fork off child into /var/qmail/bin/qmail-queue...
Mon, 08 Dec 2003 12:06:24 -0500:26682: q_r: xstatus=0
Mon, 08 Dec 2003 12:06:24 -0500:26679: qmail-scanner: Clear:RC:1(205.236.184.39): 0.009773 1796 [EMAIL PROTECTED] [EMAIL PROTECTED] test <[EMAIL PROTECTED]> 1070903184.26681-0.yoggi:1272
Mon, 08 Dec 2003 12:06:24 -0500:26679: cleanup: /bin/rm -rf /var/spool/qmailscan/tmp/yoggi107090318446126679/ /var/spool/qmailscan/working/new/yoggi107090318446126679
08/12/2003 12:06:24:26679: all finished. Total of 0.116896 secs
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general