procmail mail size limit

Good morning,
we have got a public mail server that recently is very slow delivering mail locally.
I'm checking settings of procmail and spamassassin services and I think that procmail is now configured to check all emails (also large emails). This is my procmail configuration file, how can I set mail size limit againg? Seems that it disappers.

LOGFILE=/var/log/procmail.log
TRAP=/etc/webmin/virtual-server/procmail-logger.pl
:0wi
VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl $LOGNAME
EXITCODE=$?
:0
* ?/usr/bin/test "$EXITCODE" = "73"
/dev/null
:0
* ?/usr/bin/test "$VIRTUALMIN" != ""
{
INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN
}
DEFAULT=/var/spool/mail/$LOGNAME
ORGMAIL=/var/spool/mail/$LOGNAME
DROPPRIVS=yes
:0
$DEFAULT
:0
* ^X-Spam-Status: Yes
/dev/null

Thanks a lot.

Status: 
Active

Comments

Howdy -- it's correct that all email would be delivered by procmail.

You can set email size limits in the Postfix config, which you can edit in Virtualmin by going into Webmin -> Servers -> Postfix -> General Resource Control, and there you can set the Max Message Size.

Also, you can set the max message size for SpamAssassin to process in Virtualmin by going into Email Messages -> Spam and Virus Scanning, and there you can set Maximum message size to process.

Regarding your account -- which Virtualmin version are you using, Virtualmin Pro or GPL? If you're using Virtualmin Pro, what is your serial number? It doesn't appear to be correctly associated with your account, we can get that corrected. Thanks!

Hi. I will check. Thanks. On this server I'm using GPL version.

Attach my configuration. Is it ok?

I'm using Sendmail, is there any other settings I need to check?

Thanks a lot.

Those settings look good, I don't see anything there that might cause a problem.

Here is what I would try next --

Since you're using Virtualmin GPL, you'd actually want to use the Forums for obtaining support.

What I would recommend is opening a new Forum post (which you can do by clicking the "Forums" link at the top of the site), explain the problem that you're having, and include the output of these two commands:

mailq | tail -1
uptime
free -m

We monitor the Forums, along with lots of wonderful folks in the community. Thanks!