?
Solved

Help with Spamassassin and Procmail (message size)

Posted on 2003-11-09
2
Medium Priority
?
441 Views
Last Modified: 2013-12-16
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/spamassassin/spamassassin-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.
0
Comment
Question by:coopa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 7

Accepted Solution

by:
troopern earned 1000 total points
ID: 9777009
MailScanner can help you with your problem, and SpamAssassin is configurable to scan up to a certain size of messages if I'm correct.

or scan the messages with
/usr/bin/spamc -s size

see "man spamc" for further Details.
0
 
LVL 7

Expert Comment

by:troopern
ID: 9777011
note that the size is set in bytes.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month9 days, 13 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question