Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Spamassassin+Clamav+procmail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
siemnix
n00b
n00b


Joined: 03 Mar 2005
Posts: 5

PostPosted: Thu Apr 28, 2005 3:54 pm    Post subject: Spamassassin+Clamav+procmail Reply with quote

Господа, помогите разобраться с проблемой. Почти настроил 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
View user's profile Send private message
Sparky
n00b
n00b


Joined: 17 Feb 2005
Posts: 57
Location: Russia

PostPosted: Fri Apr 29, 2005 11:22 am    Post subject: Reply with quote

с ЛЕМЪ БНР РЮЙ.... ЯНБЕРСЧ ОЕПЕЛЕММШЕ ХМХЖХЮКХГХПНБЮРЭ Б МЮВЮКЕ ЯЙПХОРЮ, ДН ОПЮБХК ТХКЭРПЮЖХХ.
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
View user's profile Send private message
siemnix
n00b
n00b


Joined: 03 Mar 2005
Posts: 5

PostPosted: Wed May 04, 2005 9:12 am    Post subject: Reply with quote

яОЮЯХАН АНКЭЬНЕ, ОНЛНЦКН!!! :lol: :lol:
Back to top
View user's profile Send private message
rusxakep
Guru
Guru


Joined: 09 Jul 2004
Posts: 458

PostPosted: Wed May 04, 2005 9:16 am    Post subject: Reply with quote

ндя ..... со кодировкой у кого-то траблы .....
Back to top
View user's profile Send private message
bukazoid
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2005
Posts: 86

PostPosted: Fri May 13, 2005 12:32 pm    Post subject: Re: Spamassassin+Clamav+procmail Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum