View previous topic :: View next topic |
Author |
Message |
fwerner n00b

Joined: 27 Mar 2003 Posts: 46 Location: Germany / Freiburg
|
Posted: Mon May 31, 2004 3:01 pm Post subject: spamassassin clear out mail??? |
|
|
hi
i use spamassassine with procmail, qmail and a maildir (procmail is doing the actual deliviery)
it is all working fine but the spam detected by spamassassine is complete cleared (only the spam subject i configured is set).
how can i change that? i dont want to loose my spam for two reasons:
1) using sa-learn on it (in a cron job)
2) i want to see my false-positves and not looosing them.
is there a solution?
f |
|
Back to top |
|
 |
adaptr Watchman


Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon May 31, 2004 6:20 pm Post subject: |
|
|
Post your procmailrc. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
 |
fwerner n00b

Joined: 27 Mar 2003 Posts: 46 Location: Germany / Freiburg
|
Posted: Mon May 31, 2004 6:25 pm Post subject: |
|
|
adaptr wrote: | Post your procmailrc. |
/etc/procmailrc
Code: |
MAILDIR=$HOME/.maildir/
DEFAULT=$MAILDIR
# LOCALS
:0
* From: .*root@
$MAILDIR.Backup.cron@chaos/
# MAILINGLISTS
:0
* To: .*blackhole@forums.gentoo
$MAILDIR.Foren.Gentoo.replies/
:0
* To: .*gentoo-announce@
$MAILDIR.Foren.Gentoo.announce/
:0
* To: .*gentoo-user-de@
$MAILDIR.Foren.Gentoo.de/
:0
* To: .*gentoo-desktop@
$MAILDIR.Foren.Gentoo.desktop/
:0
* To: .*gentoo-security@
$MAILDIR.Foren.Gentoo.security/
:0
* To: .*squirrelmail-users@
$MAILDIR.Foren.SquirrelMail/
:0
* Cc: .*squirrelmail-users@
$MAILDIR.Foren.SquirrelMail/
:0
* From: .*MAILER-DAEMON@
$MAILDIR.Spam/
:0fw
| /usr/bin/spamc
:0:
* ^X-Spam-Status: Yes
$MAILDIR.Spam/
:0
$MAILDIR
|
here you go...
f.
edited: Inserted BBCode |
|
Back to top |
|
 |
adaptr Watchman


Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon May 31, 2004 7:40 pm Post subject: |
|
|
First, I wouldn't push everything through SA - what if you get a 5MB movie or something ?
Mine runs:
Code: | :0fw
* < 256000
| spamc |
That scans everything under 256K - which should catch most viruses and spams.
Code: | :0
* ^X-Spam-Status: Yes
$MAILDIR/.SPAM/ |
You have to give a directory here - $MAILDIR.spam is not a valid directory!
And leave off the final one - it's never needed.
Everything that doesn't match one of these rules is delivered normally. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
 |
fwerner n00b

Joined: 27 Mar 2003 Posts: 46 Location: Germany / Freiburg
|
Posted: Mon May 31, 2004 7:45 pm Post subject: |
|
|
hm?
i think about the size but i dont think its a poblem...when i get a 5mb movie it will do it in the background....so imho its ok.
but, why is the spam folder not correct?
procmail does deliever it correctly! even with the other rule for MAILER-DAEMON?
what else should i put there? i am a little but confused...
f.
PS: What about my real problem, that SA kills the body and replaces the subject with SPAM????
EDITED:
i saw your mistake....have a look at the $MAILDIR. it already has the / at the end.....so everything is ok.... |
|
Back to top |
|
 |
adaptr Watchman


Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon May 31, 2004 9:39 pm Post subject: |
|
|
Spamassassin stripping the body yet retaining the headers is most likely an SA configuration issue - I'd just read the docs if I were you.
(Can't give you any info on it - I configured it more than a year ago and it's still running...) _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
 |
|