View previous topic :: View next topic |
Author |
Message |
siemnix n00b
Joined: 03 Mar 2005 Posts: 5
|
Posted: Thu Apr 28, 2005 3:54 pm Post subject: Spamassassin+Clamav+procmail |
|
|
Господа, помогите разобраться с проблемой. Почти настроил spamassasin, clamav и procmail осталась одна проблема, хочеться что бы procmail помеченную почту в заголовках письма как спам или вирус клал не в папку пользователя, а в отдельную папочку...
вот мой procmailrc:
Code: |
:0fw
| /usr/bin/spamc -f
:0
MAILDIR=$HOME/.maildir
VERBOSE=yes
LINEBUF=4096
SHELL=/bin/bash
LOGFILE=/var/log/procmail/procmail.log
:0fw
| /usr/bin/clamassassin
:0:
* ^X-Virus-Status: Yes
|
попытки вставить директорию для спама:
Code: |
:0fw
| /usr/bin/spamc -f
:0
* ^X-Spam-Status: Yes
* ^X-Spam-Level: \*\*\*\*\*
[b]/tmp/spam[/b]
MAILDIR=$HOME/.maildir
VERBOSE=yes
LINEBUF=4096
SHELL=/bin/bash
LOGFILE=/var/log/procmail/procmail.log
:0fw
| /usr/bin/clamassassin
:0:
* ^X-Virus-Status: Yes
|
привели к тому что все письма начали валиться в корень папки /.maildir
Что надо поменять что бы письма помеченные как спам перекладывались в отдельную папку ? |
|
Back to top |
|
|
Sparky n00b
Joined: 17 Feb 2005 Posts: 57 Location: Russia
|
Posted: Fri Apr 29, 2005 11:22 am Post subject: |
|
|
с ЛЕМЪ БНР РЮЙ.... ЯНБЕРСЧ ОЕПЕЛЕММШЕ ХМХЖХЮКХГХПНБЮРЭ Б МЮВЮКЕ ЯЙПХОРЮ, ДН ОПЮБХК ТХКЭРПЮЖХХ.
Code: |
# SpamAssassin sample procmailrc
#
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
#
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
| spamc
# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
/var/mail/spam
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to probably-spam.
:0:
* ^X-Spam-Status: Yes
/var/mail/spam/
# Work around procmail bug: any output on stderr will cause the F in From
# to be dropped. This will re-add it.
:0
* ^^rom[ ]
{
LOG=*** Dropped F off From_ header! Fixing up.
:0 fhw
| sed -e '1s/^/F/'
}
|
х БНРРЮЙНИ ЯЙПХОРХЙ ОН ЙПНМС НАСВЮЕР:
Code: |
1>&2
for i in /var/mail/spam/new/*
do
sa-learn --spam $i
rm -rf $i
done
for i in /var/mail/spam/msg.*
do
sa-learn --spam $i
rm -rf $i
done
|
_________________ Gentoo 2005.0/2.6.11-dev/XFCE-4.2 |
|
Back to top |
|
|
siemnix n00b
Joined: 03 Mar 2005 Posts: 5
|
Posted: Wed May 04, 2005 9:12 am Post subject: |
|
|
яОЮЯХАН АНКЭЬНЕ, ОНЛНЦКН!!! |
|
Back to top |
|
|
rusxakep Guru
Joined: 09 Jul 2004 Posts: 458
|
Posted: Wed May 04, 2005 9:16 am Post subject: |
|
|
ндя ..... со кодировкой у кого-то траблы ..... |
|
Back to top |
|
|
bukazoid Tux's lil' helper
Joined: 21 Jan 2005 Posts: 86
|
Posted: Fri May 13, 2005 12:32 pm Post subject: Re: Spamassassin+Clamav+procmail |
|
|
siemnix wrote: |
Code: |
:0fw
| /usr/bin/spamc -f
:0
* ^X-Spam-Status: Yes
* ^X-Spam-Level: \*\*\*\*\*
[b]/tmp/spam[/b]
===== тут пустой строки разве не надо ? ==============
MAILDIR=$HOME/.maildir
VERBOSE=yes
LINEBUF=4096
SHELL=/bin/bash
LOGFILE=/var/log/procmail/procmail.log
:0fw
| /usr/bin/clamassassin
:0:
* ^X-Virus-Status: Yes
|
|
|
|
Back to top |
|
|
|