Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Help with Spamassassin and Procmail (message size)

Posted on 2003-11-09
2
Medium Priority
?
443 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

618 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