Where to put .procmailrc

Hi,

I'm trying to put a simple (I think) .procmailrc file in place that gets rid of just the most obvious spam email arriving at my mailbox. (Though Outlook/Norton does a great job filtering it, that doesn't help me when I try to read mail from my phone via POP...) For now, I'll just move it to a file in my home directory (maybe later, to /dev/null, if it seems to do the trick).

However, I'm having a tough time figuring out where to put the file, or, at least, to make it do anything.

I've tried /home/myusername/.procmailrc, and /ftp/pub/myusername/.procmailrc and even /.procmailrc (because when I log in via ftp, I see that / is the current directory).

It sounds like you're on site manager, is that correct? There's actually a procmailrc file by default on site manager accounts in /etc/procmailrc. I would recommend adding the lines from your script to the bottom of that file.

Also just in case you don't realize it, the file /etc is without the . (dot). It should have "# Added By HostDir" at the top of it.

A quick question for Nathan.... You suggested adding it to the end of the file. I know that in my procmailrc file it has the code for Spamassasin added at the bottom since I use that on the account. Would code like the above want to go before that so that it does not get funneled through SA ? I think procmail filters in the order they are in the file but I may be wrong about that.

I used to have RBL stuff enabled but it always ended up causing more problems than it was worth by blocking a lot of legitimate mail. I've tried configuring it in various ways but in the end I found I was missing some important mailing list mail that was blocked because the sender was on a shared host with other senders that must have been compromised or otherwise sending spam.