coopa
asked on
Help with Spamassassin and Procmail (message size)
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:
INCLUDERC=/etc/mail/spamas sassin/spa massassin- default.rc
LOGFILE=/var/log/procmail
----------------------
My spamassassin-default.rc looks like this:
# send mail through spamassassin
:0fw
| /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.
Please help.
All incoming mail goes through SpamAssassin via procmail.
My procmailrc looks like this:
INCLUDERC=/etc/mail/spamas
LOGFILE=/var/log/procmail
----------------------
My spamassassin-default.rc looks like this:
# send mail through spamassassin
:0fw
| /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.
Please help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
note that the size is set in bytes.