Solved

Need Help With Local SpamAssassin Rule

Posted on 2007-04-04
3
238 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
Comment Utility
why you dont block this address. ?
0
 
LVL 14

Accepted Solution

by:
pablouruguay earned 250 total points
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Open BDS Pf 3 44
Running Guacamole on port 80 5 101
Linux alternative boot CD? 28 88
How to identify SSH user interactive login? 15 72
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now