Changing SpamAssassin to check emails larger than 250KB


Browse by products and services

  • Applies to: All DV
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: SSH, root or sudo access, vi knowledge

Overview

By default, SpamAssassin will not check emails larger than 250 KB. This parameter is set to prevent SpamAssassin from generating a large load on the server.

Requirements

Before you start, this article has the following dependencies:

READ ME FIRST

The publishing of this information does not imply support of this article. This article is provided solely as a courtesy to our customers. Please take a moment to review the Statement of Support.

Instructions

If you would like to change this setting to a higher value, you can edit the following file:

vi /usr/local/psa/bin/psa-spamc 

Next, change this line to a higher value:

MAX_SIZE=256000 # max letter size to filter

SpamAssassin will use the new value immediately with no need to restart any services.

See also