Solved

Need Help With Local SpamAssassin Rule

Posted on 2007-04-04
3
243 Views
Last Modified: 2011-09-20
Help me write a spamassassin rule that does this:

If user is "jsmith@smith.com" and the body of the text contains many jpegs or gifs, then assign it a high score.

0
Comment
Question by:dougp23
  • 2
3 Comments
 
LVL 14

Expert Comment

by:pablouruguay
ID: 18851729
why you dont block this address. ?
0
 
LVL 14

Accepted Solution

by:
pablouruguay earned 250 total points
ID: 18852790
http://www.intuitive.com/spam-assassin-rule-help.html

 header _LOCAL_FROM_NEWS From ~= /news@example\.com/i
body _LOCAL_SALES_FIGURES /\bMonthly Sales Figures\b/
meta LOCAL_NEWS_SALES_FIGURES (_LOCAL_FROM_NEWS &&_LOCAL_SALES_FIGURES)
score LOCAL_NEWS_SALES_FIGURES -1.0

0
 
LVL 1

Author Comment

by:dougp23
ID: 18857134
Well, we just seem to get an amount of people sending these messages "Check out these cute puppies" or "wonderful rainbow pics" and they have lots of jpgs and gifs inside.  One was malformed MIME and hosed my inmail processor for a bit.  Mangement has tasked me with reducing this junk, so I was just hoping for some ideas!!!

Pablour, I almost see your way, but I think there is already a local rule (/usr/share/spamassassin rules) that checks for a majority of jpg or gif.  Not sure.

Any other thoughts or ideas would be great!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

830 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