Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th August 2007, 09:52 AM
Smick Offline
Registered User
 
Join Date: Jun 2005
Posts: 9
Filtering emails - Spam

Users of my network are getting a lot of spam emails, in particular 'Sydney Car Center' ones.

We have a getmail / sendmail set up here and I am wanting to know is there any way of deleting emails as they come in if they have a certain subject which I have specified.

Was thinking something along the lines of a forward in /etc/aliases to a script that reads the subject? Or is there a more simple way?

Thanks
Reply With Quote
  #2  
Old 28th August 2007, 03:29 PM
William Haller Offline
Registered User
 
Join Date: Jul 2005
Age: 52
Posts: 1,013
Add the procmail rpm if not already done. Add the following line to the bottom of your sendmail.mc file (or move the dnl to the right if one is already there. When done, type make all and then restart the sendmail service. Modify the /etc/procmailrc file to suit.

MAILER(procmail)dnl

Do a man procmail for an example of filtering on a subject line.

I would also suggest adding the clamav milter and the spamassassin milter, but I prefer the clamav rpm from atrpms.net (the only package I pull from there) as it is usually more up to date than the distributed packages.

You can also use procmail to delete or quarantine all e-mails with particular suffixes in attachments (or any e-mail with a double suffix (.htm.bat) or similar. It's pretty handy. Each user can set up their own procmailrc script home/*/.procmailrc and add their own rules in addition to the site wide rules.

After clamav and spamassassin have gotten through with things and added headers with rules that they hit, you can severely drop the amount of spam that gets through with some additional procmail rules. Any RBL_ hit or FORGED_ hit or SPF_FAIL hit to name a few from spamassassin can be immediately routed to the bit bucket. They can also be stored in a separate archival directory for awhile in case the user really wants that russian casino email routed through china, et cetera.

In addition to the above spamassassin rulesets I mentioned, my own procmail file has pretty much any rule hit with a OBFU or PORN_, DRUGS_, SPOOF_, SARE_, STOCK_, or FUZZY_. Around 300 altogether. That, combined with a whitelist of people who can bypass the rules, pretty much cleans up my real inbox. The rulesemporium.org site has a wide range of additional rules that have been contributed that detect many other forms of SPAM.
Reply With Quote
  #3  
Old 28th August 2007, 04:51 PM
Smick Offline
Registered User
 
Join Date: Jun 2005
Posts: 9
Thanks v much William, sounds to be exactly what I'm after.

Ill give it a bash and let you know how I get on!
Reply With Quote
Reply

Tags
emails, filtering, spam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Evolution plus spam filtering TechDragon Using Fedora 1 25th August 2008 08:48 PM
I can Send Emails But I cannot Receive Emails jmbiram Using Fedora 18 17th June 2008 11:05 PM
Url filtering timinator Using Fedora 3 14th September 2007 10:02 PM


Current GMT-time: 04:30 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat