LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Procmail Recipe: Need help (https://www.linuxquestions.org/questions/linux-newbie-8/procmail-recipe-need-help-762901/)

vaibhavs 10-19-2009 03:27 AM

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

HaroldWho 10-20-2009 01:59 PM

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?


All times are GMT -5. The time now is 12:32 PM.