To decrease the load on your server caused by SpamAssassin, you can
limit the maximum size of emails that SpamAssassin should analyze. All
messages exceeding this size will be delivered to their recipients
without checking.
To define the maximum size of messages that SpamAssassin will
process:
-
Open for editing the configuration file
/etc/psa/psa.conf
-
Specify the desired value in bytes for the parameter
SA_MAX_MAIL_SIZE
.By default, the maximum email size is 256000 bytes. We recommend that
you limit the maximum mail size to 150 - 250 Kbytes, which is usual
for mail messages in HTML format with images. The size of the mail is
considered critical for filter and server overload if it exceeds 500
Kbytes, which is usual for mail messages containing attachments.