On Tue, Apr 15, 2008 at 11:33 AM, Salvatore Toribio <[EMAIL PROTECTED]> wrote: > At 10:40 -0400 15-04-2008, Asif Iqbal wrote: > > > On Tue, Apr 15, 2008 at 4:27 AM, Salvatore Toribio <[EMAIL PROTECTED]> > wrote: > > > > > At 11:20 -0400 14-04-2008, Asif Iqbal wrote: > > > > > > > So I am assuming I need to somehome replace this `select(LOG);$|=1;' > > > > with system call to `logger' command? > > > > > > > > Still looking for suggestion > > > > > > > > > > I don't know why are you trying this to write again in the same file... > > > > > > > I don't > > > > I actually wanted to not write to a file and just use syslog > > > > I see in your `sub-log_msg.pl' if I just define log_details to syslog > > that should skip the writing to file. > > > > What confuses me then is I see here it is already defined in my ST > > patched qmail-scanner.pl `my $log_details="syslog";' > > and I also see the log_msg sub routine in there. > > > > So why is it still writing the minidebug to a file? tail -f > > qmail-queue.log shows it is writing to that file > > > > What am I missing then? > > > > > > So you are logging to syslog (maillog?) and to a file, and you just want to > disable the log to a file. To disable it set $MINIDEBUG to '0'. You should > find it round line 450 in qmail-scanner-queue.pl
This is how I configured (sanitized to save the innocents) # ./configure --qs-user qscand --spooldir /var/spool/qmailscan --admin postmaster --domain qwestip.net --admin-descript ion "Qmail_Scanner" --notify psender,nmlvadm --local-domains home.net --silent-viruses auto --virus-to-delete 0 --skip-text-msgs 1 --lang en_GB --debug 0 --minidebug 1 --add-dscr-hdrs yes --dscr-hdrs-text "X-Qmail-Scanner" --normalize yes --archive 0 --settings-per-domain 0 --max-scan-size 100000000 --unzip 0 --max-zip -size 100000000 --max-unpacked-files 10000 --redundant 0 --log-details syslog --log-crypto 0 --fix-mime 2 --ignore-eol-check 0 --sa-subject "****SPAM****" --sa-delta 0 --sa-alt 1 --sa-debug 0 --sa-report 0 --sa-quarantine 0 --sa-delete 10 --sa-reject 0 --scanners "auto" --install 1 And I see this log *only* in qmail-queue.log but not in syslog's mail.info (aka maillog yes) Tue, 15 Apr 2008 17:01:40 GMT:26206: +++ starting debugging for process 26206 (ppid=26197) by uid=7791 Tue, 15 Apr 2008 17:01:40 GMT:26206: w_c: Total time between DATA command and "." was 0.000247 secs Tue, 15 Apr 2008 17:01:40 GMT:26206: w_c: elapsed time from start 0.018104 secs Tue, 15 Apr 2008 17:01:40 GMT:26206: g_e_h: return-path='[EMAIL PROTECTED]', recips='[EMAIL PROTECTED]' Tue, 15 Apr 2008 17:01:40 GMT:26206: from='Albrektsson <[EMAIL PROTECTED]>', subj='Centuries old recipe packaged for you', via SMTP from 83.111.89.50 Tue, 15 Apr 2008 17:01:40 GMT:26206: clamdscan: finished scan in 0.048646 secs Tue, 15 Apr 2008 17:01:41 GMT:26159: SA: yup, this smells like SPAM - hits=16.5/5.0/15 - message deleted ... Tue, 15 Apr 2008 17:01:41 GMT:26159: SA: finished scan in 9.656839 secs - hits=16.5/5.0 Tue, 15 Apr 2008 17:01:41 GMT:26159: ini_sc: finished scan of "/var/spool/qmailscan/tmp/qmail120827889276426159"... Tue, 15 Apr 2008 17:01:41 GMT:26159: ------ Process 26159 finished. Total of 9.778034 secs I do not want to turn off minidebug (set to `0') unless I can send those logs to syslog > > Regards > > ST > -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Qmail-scanner-general mailing list Qmail-scanner-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general