clamav+spamassassin+qmail
Stanislav Mařík
standa na doktor007.com
Čtvrtek Červen 23 16:35:53 CEST 2005
>> ls -l /usr/bin/qmail-scanner-queue.pl
>> -rwxr-xr-x 1 qmailq qmail 101697 lis 1
>> 2004 /usr/bin/qmail-scanner-queue.pl
>>
>> me bezi jako root:
>> root 5246 1 0 Jun03 ? 00:00:01 /usr/bin/spamd
>> --user-config -d -c -m5 -H
>>
>> spamassassin na to IMHO neni haklivy
>
>
> Tak jsem vyzkoušel změnit práva, ale nepomohlo to.
>
> -rwxr-xr-x 1 qmailq qmail 139961 čen 8 22:34
> /var/qmail/bin/qmail-scanner-queue.pl
>
> ls -la /var/spool/qmailscan/
> total 856
> drwxrwxr-x 8 qmailq qmail 4096 čen 9 00:14 .
> drwxr-xr-x 7 root root 4096 kvě 30 18:08 ..
> drwxr-x--- 5 qmailq qmail 4096 kvě 30 18:08 archive
> -rw-r--r-- 1 qmailq qmail 0 čen 8 22:34 .keep
> -rw------- 1 qmailq qmail 171217 čen 8 14:14 mailstats.csv
> -rw------- 1 qmailq qmail 637531 čen 9 00:13 qmail-queue.log
> -rw------- 1 qmailq qmail 62 čen 9 00:13
> qmail-scanner-queue-version.txt
> drwxr-x--- 5 qmailq qmail 4096 kvě 30 18:08 quarantine
> -rw-r----- 1 qmailq qmail 12288 čen 9 00:14 quarantine-attachments.db
> -rw-r--r-- 1 qmailq qmail 7414 čen 8 22:34 quarantine-attachments.txt
> -rw-r--r-- 1 qmailq qmail 0 čen 8 22:34 quarantine.log
> drwxr-xr-x 2 qmailq qmail 4096 čen 8 09:09 .razor
> drwx------ 2 qmailq qmail 4096 čen 8 14:14 .spamassassin
> drwxr-x--- 2 qmailq qmail 4096 čen 8 22:34 tmp
> lrwxrwxrwx 1 qmailq qmail 14 čen 8 22:34 viruses.log ->
> quarantine.log
> drwxr-x--- 5 qmailq qmail 4096 kvě 30 18:08 working
>
> chyba je stejná:
>
> @4000000042a8ad4c15534c14
> X-Qmail-Scanner-1.25st:[router111835065871821058] cannot open
> /var/spool/qmailscan/qmail-scanner-queue-version.txt - did you
> initialise the system by running "qmail-scanner-queue.pl -z"? -
> Permission denied
> @4000000042a8ad4c157dde84 /bin/rm: cannot remove
> `/var/spool/qmailscan/tmp/router111835065871821058/': Permission denied
> @4000000042a8ad4c157fbefc /bin/rm: cannot remove
> `/var/spool/qmailscan/working/new/router111835065871821058': Permission
> denied
Tak se mi konečně podařilo nastavit práva, chybu už nepíše. Ale zase mi
nepřepíše subject a neodstraní mail. Vše běží na Gentoo,
spamassassin-3.0.4, clamav-0.85.1-r1, qmail-1.03-r15,
qmail-scanner-1.25-r1 .
Výpis hlavičky mailu:
From - Thu Jun 23 16:04:44 2005
X-UIDL: UID3009-1114592795
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: <linux-return-238467-standa=doktor007.com na linux.cz>
Delivered-To: standa na doktor007.com
Received: (qmail 13104 invoked from network); 23 Jun 2005 14:23:23 +0000
Received: from 147.251.48.205 by router (envelope-from
<linux-return-238467-standa=doktor007.com na linux.cz>, uid 201) with
qmail-scanner-1.25st
(clamdscan: 0.85.1/949. spamassassin: 3.0.4. perlscan: 1.25st.
Clear:RC:0(147.251.48.205):SA:1(13.5/5.0):.
Processed in 4.868015 secs); 23 Jun 2005 14:23:23 -0000
X-Spam-Status: Yes, hits=13.5 required=5.0
X-Spam-Level: +++++++++++++
Received: from odysseus.linux.cz (147.251.48.205)
by doktor-007.mason.czf with SMTP; 23 Jun 2005 14:23:17 +0000
Received: (qmail 28272 invoked by uid 223); 23 Jun 2005 10:39:14 -0000
Nastavení /etc/spamassassin/local.cf:
required_score 5
rewrite_header Subject ***ASI SPAM***
report_safe 1
use_auto_whitelist 1
auto_whitelist_path /var/spool/qmailscan/.spamassassin/auto-whitelist
auto_whitelist_file_mode 0666
use_razor 1
dns_available yes
use_bayes 1
#bayes_auto_learn 1
#bayes_file_mode 0666
#bayes_path /home/spamd/.spamassassin/bayes
#bayes_auto_learn_threshold_nonspam 1
#bayes_auto_learn_threshold_spam 7
score BAYES_60 4
score BAYES_80 4.50
score BAYES_95 4.75
score BAYES_99 4.75
Nastavní práv:
-rwxr-xr-x 1 qscand qmail 139961 čen 22 15:23
/var/qmail/bin/qmail-scanner-queue.pl
drwxr-x--- 5 qmaild nofiles 4096 kvě 30 16:08 archive
-rw------- 1 qmaild nofiles 203206 čen 23 16:26 mailstats.csv
-rw------- 1 qmaild nofiles 737191 čen 23 16:26 qmail-queue.log
-rw------- 1 qmaild nofiles 62 čen 21 20:32
qmail-scanner-queue-version.txt
drwxr-x--- 5 qmaild nofiles 4096 kvě 30 16:08 quarantine
-rw-r----- 1 qmaild nofiles 12288 čen 21 20:32 quarantine-attachments.db
-rw-r--r-- 1 qmaild nofiles 7414 čen 8 20:34 quarantine-attachments.txt
-rw-r--r-- 1 qmaild nofiles 0 čen 8 20:34 quarantine.log
drwxr-xr-x 2 qmaild nofiles 4096 čen 23 16:26 tmp
lrwxrwxrwx 1 root root 14 čen 8 20:34 viruses.log ->
quarantine.log
drwxr-x--- 5 qmaild nofiles 4096 kvě 30 16:08 working
V /etc/clamav.conf jsem nastavil "User root".
Další informace o konferenci Linux