Increase spamassassin message size

Questions and answers about how to do stuff
Post Reply
BitWrangler
Posts: 3
Joined: 14 Jul 2014 14:36

Increase spamassassin message size

Post by BitWrangler »

I'm seeing an increase in spam with an attached image. Message sized are 600 to 900 kb which puts them just over the threshold for what spamassassin will scan or skip.

If I'm recalling correctly the setting for that is not in a rule but is part of the startup script or call?

If someone could point me to the location of the spamassassin startup for efa it would be appreciated.
BitWrangler
Posts: 3
Joined: 14 Jul 2014 14:36

Re: Increase spamassassin message size

Post by BitWrangler »

The specific location to edit is:

Code: Select all

/etc/MailScanner/MailScanner.conf
This line:

Code: Select all

Max Spam Check Size = 200k
I modified by adding a 0

Code: Select all

Max Spam Check Size = 2000k
On a resource constrained box this might cause performance issues but for me it'll be ok (CPU and RAM is cheap these days).
mikemachin
Posts: 33
Joined: 29 Aug 2014 11:27

Re: Increase spamassassin message size

Post by mikemachin »

I dont see this exact text in the conf file as I am looking to do the same thing,

I have found a section with 'Max SpamAssassin Size = 100k continue 150k'

We want to set all mails to be scanned
User avatar
shawniverson
Posts: 3650
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Increase spamassassin message size

Post by shawniverson »

look in the MailScanner conf...
User avatar
mcgearytech
Posts: 9
Joined: 08 Sep 2014 17:01

Re: Increase spamassassin message size

Post by mcgearytech »

I was pulling my hair out trying to figure out why some blatant spam was making it through to my mailboxes. i noticed the spam messages were kinda large as they had images in them then saw the maillog file had skipped scanning due to size. After a little searching this fixed me right up. I would suggest increasing the limit as a default as more and more spammers are sending larger emails due the decreased costs of bandwidth these days. again great product little tweaking and it gets even better. :dance:
User avatar
shawniverson
Posts: 3650
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Increase spamassassin message size

Post by shawniverson »

Post Reply