LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2009, 03:27 AM   #1
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Rep: Reputation: 15
Procmail Recipe: Need help


Hi,

I am trying to setup a spam filter for email which has same sender & recipient addresses.

This is what I have in my procmailrc.

PHP Code:
:0
* ^From:.*info@mydomain\.com
* ^To:.*info@mydomain\.com
/var/spool/mail/junk

:0
* ^From:.*webmaster@mydomain\.com
* ^To:.*webmaster@mydomain\.com
/var/spool/mail/junk

:0
* ^From:.*sales@mydomain\.com
* ^To:.*sales@mydomain\.com
/var/spool/mail/junk 
But this filter is not working ?

Can someone guide me, what am I doing wrong and how to get this one correct!!

Thx
Vai
 
Old 10-20-2009, 01:59 PM   #2
HaroldWho
Member
 
Registered: Nov 2006
Location: southeastern PA
Distribution: Slackware
Posts: 130

Rep: Reputation: 23
These receipes look OK to me, so I wonder whether:

Does /var/spool/mail/junk exist?
Are the permissions for /var/spool/mail/junk OK; e.g., can the user write to it?

And BTW, what *does* happen to those messages with To and From fields the same?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Three actions in a recipe of Procmail Borelian Linux - Software 1 11-11-2012 06:48 AM
[SOLVED] procmail recipe required raghugs Linux - Server 3 10-09-2009 02:39 AM
Procmail recipe question gauge73 Linux - Software 3 05-03-2006 04:09 AM
Procmail recipe jebix666 Linux - General 1 06-09-2005 01:43 PM
procmail recipe not working? theLIGHT Linux - Software 3 11-18-2002 10:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration