I don't know if spamass-milter is sufficiently flexible, but it's very
easy to do this with MIMEDefang:
http://www.mimedefang.org/node.php?id=35
--
David.
man spamass-milter
<snip>
-b spamaddress
Redirects tagged spam to the specified email address. All envelope
recipients are removed, and inserted into the message as `X-Spam-Orig-To:'
headers.
<snip>
Plus some other nifty things.
Grant. . . .
and that is working... thanks so much. last question is there any
way for me to tell it to just change the subject for spam rated 3-4
while 5+ just goes to the spam email? Right now anything with 5+ gets
[SPAM] added to subj and now with this get sent to sp...@example.com. I
would just like a setting for "suspected spam" so to speak.
*nod*
> and that is working... thanks so much. last question is there any
> way for me to tell it to just change the subject for spam rated 3-4
> while 5+ just goes to the spam email? Right now anything with 5+ gets
> [SPAM] added to subj and now with this get sent to sp...@example.com. I
> would just like a setting for "suspected spam" so to speak.
Ugh! I doubt it. Think about what you are really asking to do now. First let's think about what SpamAssassin is meant to do. SA will analyze an email and decide if a message has a high enough spam score to be declared spam or not. If the message is spam, then it is treated as such. if the message is not spam, then it is treated as ham. You are wanting to have SA decide if a message is not spam, is suspected but not confirmed spam, and if a message is spam. That is a non binary decision. One thing that comes to mind is to configure spamass-milter to reject spam if it has a high enough spam score and only allow lower scoring spam through in addition to messages that are not considered spam. This is what I'm doing. I don't think it is possible with spamass-milter to tag low scoring spam and redirect high scoring spam. You could probably very likely do something like that with MIMEDefang tough. I suppose you could also run your messages through SA via spamass-milter
and then have another milter look at SAs results and decide what to do with the message then.
Grant. . .
>> and that is working... thanks so much. last question is there any
>> way for me to tell it to just change the subject for spam rated 3-4
>> while 5+ just goes to the spam email? Right now anything with 5+ gets
>> [SPAM] added to subj and now with this get sent to sp...@example.com. I
>> would just like a setting for "suspected spam" so to speak.
> Ugh! I doubt it. Think about what you are really asking to do now.
Again, MIMEDefang makes that trivial because it's scriptable in Perl.
Pseudocode in filter_end:
if ($score >= 5) {
send_to_spamtrap_address();
} elsif ($score >= 3) {
action_change_header('Subject', "[SPAM] $Subject");
}
Easy, no? :-)
Regards,
David.