Forward SPAM mails from spam assassin to another account with SAPM HEADER

Use this forum for discussions about SpamAssassin and anti-spam in general.
Post Reply
ajaykumar.k
New user
New user
Posts: 2
Joined: 2019-05-24 06:55

Forward SPAM mails from spam assassin to another account with SAPM HEADER

Post by ajaykumar.k » 2019-05-24 07:44

Hi Guys,

I have recently implemented spam assassin in my organisation. It seems like working fine so far by tagging all suspicious mails as SPAM HEADER.
But my main intention is to forward all SPAM mails to separate account instead before reaching to mailbox of employees,
So, our system admin can monitor them and validate accordingly from that separate account .

Sorry for Type error/spelling mistakes & thanks in advance

User avatar
mattg
Moderator
Moderator
Posts: 20233
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Forward SPAM mails from spam assassin to another account with SAPM HEADER

Post by mattg » 2019-05-24 09:45

catch with a global rule and forward to a new recipient, then delete the original

If subject contains 'Spam header'
AND
Recipient list not contain 'spam@example.com'

THEN
Forward to spam@example.com
Delete Message
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

palinka
Senior user
Senior user
Posts: 1215
Joined: 2017-09-12 17:57

Re: Forward SPAM mails from spam assassin to another account with SAPM HEADER

Post by palinka » 2019-05-24 12:51

ajaykumar.k wrote:
2019-05-24 07:44
Hi Guys,

I have recently implemented spam assassin in my organisation. It seems like working fine so far by tagging all suspicious mails as SPAM HEADER.
But my main intention is to forward all SPAM mails to separate account instead before reaching to mailbox of employees,
So, our system admin can monitor them and validate accordingly from that separate account .

Sorry for Type error/spelling mistakes & thanks in advance
A better strategy possibly. Set your spam delete threshold vey high, like 1000, then use rules to sort delete.

If X-hMailServer-Reason-Score > 7.99
Forward to spam@example.com
Delete

If X-hMailServer-Reason-Score < 8
Forward to spam@example.com

Then the user gets to decide grey area stuff AND admin gets to see and act on all incoming spam. This is what i do. This makes sure i can sort spam from ham. Even if the user ignores the spam (leaves it in the inbox) i can still make sure bayes picks it up. Make sure to change the subject so the user is notified on potential spam.

Once you build up a spam corpus for bayes and get your system running well, you can play with the number. I have my "rule delete threshold" set at 6. Since i can see all spam, I'm confident in the threshold.

Also read this incredibly informative thread: https://www.hmailserver.com/forum/viewt ... 20&t=26866

Post Reply