вопросы -1 тоесть spamassassin отдает 12 заголовков письма вместо отданных ему 27ми ? как это поправить? смотрел маны по getmail - там написано "смотрите настройки вашей программы" - наверняка аргументы которые я ей даю...(помогите с ними) или забить(плохо) и убрать у гетмыла verbose?
2 ошибка с clamav(ниже)???стоит себе qmail clamav spamassasin vpopmail
FreeBSD ftp.texx.ru 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Wed Dec 5 20:31:39 MSK 2007 root@ftp.texx.ru:/usr/src/sys/i386/compile/FTPTEXX2 i386
на спамц гетмайл ругается в почту для vpopmail@texx.ru
Warning: filter Filter_external spamc (allow_root_commands="False", arguments="('-s', '150000')", command="spamc", exitcodes_drop="('99', '100')", exitcodes_keep="('0',)", group="None", path="/usr/local/bin/spamc", unixfrom="False", user="None") returned fewer headers (12) than supplied (27)
тоесть spamassassin отдает 12 заголовков письма вместо отданных ему 27ми ?
настройки getmail
cat /mail/vpopmail/.getmail/getmailrc
[options]
verbose = 1
delete = true
#delivered_to = false
#received = false
#read_all = true
message_log = /var/log/getmail.mail
[retriever]
type = SimplePOP3Retriever
server = pop.masterhost.ru
username =xxx@texx.ru
password =x
[filter-1]
type = Filter_external
path = /usr/local/bin/spamc
arguments = ("-s", "150000")
##arguments = ("--report", )
[filter-2]
type = Filter_classifier
path = /usr/local/bin/clamscan
arguments = ("--stdout", "--no-summary", "--infected", "--no-pdf", "-")
exitcodes_drop = (1,) #Если письмо с вирусом, то прибить
в логах getmail
Copyright (C) 1998-2006 Charles Cazabon. Licensed under the GNU GPL version 2.
SimplePOP3Retriever:xx@texx.ru@pop.masterhost.ru:110:
msg 1/1 (38378 bytes) delivered, deleted
1 messages retrieved, 0 skipped
в логах getmail.mail
008-03-20 13:40:02 Initializing SimplePOP3Retriever:xxx@texx.ru@pop.masterhost.ru:110:
2008-03-20 13:40:23 msg 1/3 (7072545 bytes) msgid 1206009483.27309.mx-35.masterhost.ru,S=7072489 from <marisa@trud.ru> delivered to MultiGuesser (['Maildir /mail/vpopmail/domains/texx.ru/xxx/Maildir/', 'Maildir /mail/vpopmail/domains/texx.ru/sternov/Maildir/']), deleted
2008-03-20 13:40:39 msg 2/3 (3454 bytes) msgid 1206009580.9367.mx-6.masterhost.ru,S=3399 from <mc@expoint.ru> delivered to MultiGuesser (['Maildir /mail/vpopmail/domains/texx.ru/xxx/Maildir/', 'Maildir /mail/vpopmail/domains/texx.ru/fp/Maildir/']), deleted
2008-03-20 13:40:54 msg 3/3 (3420 bytes) msgid 1206009582.32807.mx-3.masterhost.ru,S=3350 from <akalugina@intermedservice.ru> delivered to MultiGuesser (['Maildir /mail/vpopmail/domains/texx.ru/xxx/Maildir/', 'Maildir /mail/vpopmail/domains/texx.ru/buyanova/Maildir/']), deleted
настройка spamassasin
cat /usr/local/etc/mail/spamassassin/local.cf
rewrite_header Subject *****SPAM*****
report_safe 1
trusted_networks 192.168.0.
required_score 5.0
use_bayes 1
bayes_auto_learn 1
в логах spamd.log
Thu Mar 20 12:50:18 2008 [762] info: prefork: child states: II
Thu Mar 20 12:50:26 2008 [94945] info: spamd: connection from localhost [127.0.0.1] at port 6139
Thu Mar 20 12:50:26 2008 [94945] warn: Use of uninitialized value in scalar chomp at /usr/local/bin/spamd line 1762, <GEN1024> line 2.
Thu Mar 20 12:50:26 2008 [94945] warn: Use of uninitialized value in concatenation (.) or string at /usr/local/bin/spamd line 1764, <GEN1024> line 2.
Thu Mar 20 12:50:26 2008 [94945] info: spamd: processing message <000601c88a6f$0547fda7$30c7f3b4@gofjeuh> for vpopmail:89
Thu Mar 20 12:50:30 2008 [94945] info: spamd: identified spam (10.9/5.0) for vpopmail:89 in 3.4 seconds, 4722 bytes.
Thu Mar 20 12:50:30 2008 [94945] info: spamd: result: Y 10 - DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,RAZOR2_CHECK,RCVD_IN_SORBS_WEB,RCVD_IN_XBL,RCVD_NUMERIC_HELO scantime=3.4,size=4722,user=vpopmail,uid=89,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=6139,mid=<000601c88a6f$0547fda7$30c7f3b4@gofjeuh>,autolearn=no
Thu Mar 20 12:50:30 2008 [762] info: prefork: child states: II
и
2 ошибка с clamav иногда возникает - я так понимаю не ошибка а просто кламав находит вирус и ничего не делает... письмо тупо висит на почтовом сервере(и каждый раз качается и проверяется)
Filter error (filter Filter_classifier clamscan (allow_root_commands="False", arguments="('--stdout', '--no-summary', '--infected', '--no-pdf', '-')", command="clamscan", exitcodes_drop="('1',)", exitcodes_keep="('0',)", group="None", path="/usr/local/bin/clamscan", unixfrom="False", user="None") returned 0 (LibClamAV Warning: RFC2231 parameter continuations are not yet handled
LibClamAV Warning: messageArgumentExists: no '=' sign found in MIME header 'filename' (filename*0*=UTF-8''я█п╩п╣п╨я┌я─п╬п╫п╫)
LibClamAV Warning: messageArgumentExists: no '=' sign found in MIME header 'file' (filename*0*=UTF-8''я█п╩п╣п╨я┌я─п╬п╫п╫)
LibClamAV Warning: messageFindArgument: no '=' sign found in MIME header 'filename' (filename*0*=UTF-8''я█п╩п╣п╨я┌я─п╬п╫п╫))
)
настройки кламава
cat /usr/local/etc/clamd.conf
LogFile /var/log/clamav/clamd.log
LogTime yes
LogSyslog yes
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /var/db/clamav
LocalSocket /var/run/clamav/clamd
FixStaleSocket yes
StreamMaxLength 20M
User clamav
AllowSupplementaryGroups yes
ScanPE yes
ScanELF yes
DetectBrokenExecutables yes
ScanPDF yes
ScanMail yes
ScanHTML yes
ScanArchive yes
ArchiveMaxFileSize 15M
ArchiveMaxRecursion 10
ArchiveMaxFiles 1500
лог
Thu Mar 20 05:51:28 2008 -> Reading databases from /var/db/clamav
Thu Mar 20 05:51:36 2008 -> Database correctly reloaded (232483 signatures)
Thu Mar 20 09:51:37 2008 -> SelfCheck: Database modification detected. Forcing reload.
Thu Mar 20 09:51:37 2008 -> Reading databases from /var/db/clamav
Thu Mar 20 09:51:44 2008 -> Database correctly reloaded (232490 signatures)