Help with MailScanner inline message

Daniel15

Well-Known Member
Oct 7, 2006
86
1
156
Palo Alto, CA (originally Melbourne, Australia)
cPanel Access Level
Website Owner
Twitter
Hi everyone,
Recently, I installed MailScanner using the script found at http://www.configserver.com/free/mailscanner.html. It seems to be working OK, however I'm having a minor problem with it: If a spam message is detected, the subject gets changed, but the spam report isn't attached (the SpamAssassin one). The actual email is unaltered apart from the headers. What's the proper way to make it attach the spam warning to the email (I believe the warning is stored at /usr/mailscanner/etc/reports/en/inline.spam.warning.txt)?

Thanks,
Daniel
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
IIRC, you can't do it that way round with MailScanner. You can set the delivery option for Spam Actions and High Scoring Spam Actions to use attachment which puts the spam email as the attachment and the main message is the spam report.
 

Daniel15

Well-Known Member
Oct 7, 2006
86
1
156
Palo Alto, CA (originally Melbourne, Australia)
cPanel Access Level
Website Owner
Twitter
Chirpy,
Thanks for your response. I edited the /usr/mailscanner/etc/MailScanner.conf like so:
Code:
#Spam Actions = %rules-dir%/spam.action.rules
Spam Actions = attachment store
As I store the message in quarantine as well, for MailWatch. However, after I restarted MailScanner, spam messages no longer reach the recipient. Do you know why this is?

I also tried running:
Code:
replace deliver attachment -- /usr/mailscanner/etc/rules/spam.action.rules
and using the spam.action.rules file, with the same result.

It's starting to confuse me quite a bit :confused:

--Daniel15
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
Chirpy,
Thanks for your response. I edited the /usr/mailscanner/etc/MailScanner.conf like so:
Code:
#Spam Actions = %rules-dir%/spam.action.rules
Spam Actions = attachment store
As I store the message in quarantine as well, for MailWatch. However, after I restarted MailScanner, spam messages no longer reach the recipient. Do you know why this is?

I also tried running:
Code:
replace deliver attachment -- /usr/mailscanner/etc/rules/spam.action.rules
and using the spam.action.rules file, with the same result.

It's starting to confuse me quite a bit :confused:

--Daniel15
You need to use attachment store deliver