Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
spamassassin clear out mail???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fwerner
n00b
n00b


Joined: 27 Mar 2003
Posts: 46
Location: Germany / Freiburg

PostPosted: Mon May 31, 2004 3:01 pm    Post subject: spamassassin clear out mail??? Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon May 31, 2004 6:20 pm    Post subject: Reply with quote

Post your procmailrc.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
fwerner
n00b
n00b


Joined: 27 Mar 2003
Posts: 46
Location: Germany / Freiburg

PostPosted: Mon May 31, 2004 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon May 31, 2004 7:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
fwerner
n00b
n00b


Joined: 27 Mar 2003
Posts: 46
Location: Germany / Freiburg

PostPosted: Mon May 31, 2004 7:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon May 31, 2004 9:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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