LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problems with Procmail + Spamassassin (https://www.linuxquestions.org/questions/linux-software-2/problems-with-procmail-spamassassin-135059/)

timread 01-15-2004 08:39 AM

Problems with Procmail + Spamassassin
 
I have configured (with effort)fetchmail to download my email to /var/spool/mail and want procmail to process it using spamassassin. I hence have created (all in my home directory) a .forward:

"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #user"

and a .procmailrc:

:0fw
| /usr/bin/spamassassin

But when new mail appears, nothing happens... The content of /var/spool/mail just stays the same. If I run procmail my hand it just hangs there doing nothing...

Many thanks.

Tim

rlkiddjr 01-15-2004 08:59 AM

This is what I have for my procmail concerning spamassassin. I run spamassassin as a daemon, so that is why I call spamc. The second command forwards all spam mail to a file called spam. Now a word of warning, you will want to create that file with the specific user permissions. Otherwise it will be created with root permissions.


:0fw
| /usr/bin/spamc

:0:
* ^X-Spam-Flag: Yes
$HOME/spam

Hope this helps.

timread 01-15-2004 09:11 AM

Just a couple of follow one questions:

How does the system know to start procmail? do you have a .forward file, is procmail running all the time....

Thanks,

Tim


All times are GMT -5. The time now is 12:19 AM.