Help with Spamassassin and Procmail (message size)
Posted on 2003-11-09
I run a (redhat9) linux box mainly for mail. Lately with lots of emails with attachments coming through I am finding it grinding to a halt as it spends 10 minutes looking through an email attachment for spam keywords.
All incoming mail goes through SpamAssassin via procmail.
My procmailrc looks like this:
My spamassassin-default.rc looks like this:
# send mail through spamassassin
| /usr/bin/spamassassin -P
What I would like to do is deliver all emails over 0.5mb in size, regardless of whether they are spam or not, by skipping spamassassin. Anything less I want to analyse and log.
I know you can create a kind of IF statement in procmail, I just don't know how to do this.