Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-19-2009, 04:27 AM   #1
Registered: Jun 2008
Posts: 113

Rep: Reputation: 15
Procmail Recipe: Need help


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:
* ^From:.*info@mydomain\.com
* ^To:.*info@mydomain\.com

* ^From:.*webmaster@mydomain\.com
* ^To:.*webmaster@mydomain\.com

* ^From:.*sales@mydomain\.com
* ^To:.*sales@mydomain\.com
But this filter is not working ?

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

Old 10-20-2009, 02:59 PM   #2
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?


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 07:48 AM
[SOLVED] procmail recipe required raghugs Linux - Server 3 10-09-2009 03:39 AM
Procmail recipe question gauge73 Linux - Software 3 05-03-2006 05:09 AM
Procmail recipe jebix666 Linux - General 1 06-09-2005 02:43 PM
procmail recipe not working? theLIGHT Linux - Software 3 11-18-2002 11:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:11 AM.

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