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 |
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. |
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 09:23 PM. |