> A reminder: I would love to see your procmail recipes. I am > configuring my imap server to be my primary repository, and I want > fetchmail to get it and procmail to sort it. The syntax perplexed me > at first examination of the procmail man pages, so I would like to > take you up on your offer to post your recipe(s). >
Here is my procmailrc on the ISP end. This is where all my mail is centrally collected via fetchmail from my various accounts, it is spam filtered and delivered to my inbox, /dev/null, or a folder called spam depending on the rules. # Mailing Lists # Bugtraq :0: * ^List-Id:.*bugtraq* /var/spool/mail/yuser # NT Bugtraq :0: * ^Sender:.*NTBugtraq* /var/spool/mail/yuser # Luau :0: * ^(To|Cc):.*luau* /var/spool/mail/yuser :0: * ^(To|Cc):.*epic\.org /var/spool/mail/yuser # Block executable attachments #:0 B #*^Content-Type: (application|audio) #*^.*name=.*\.(vb[esx]|jse?|ws[hf]|c[ho]m|bat|cmd|s b|hta|exe|lnk|pif|scr|shs) #/home/yuser/mail/blocked # Specific blocks :0: * ^(From|Cc):.*com\.ar /dev/null :0: * ^From:[EMAIL PROTECTED] /dev/null :0: * ^From:[EMAIL PROTECTED] /dev/null :0: * ^From:[EMAIL PROTECTED] /dev/null # Put messages that are not explicitly to me in a different folder # These are my addresses that I use and are picked up here. # If mail not explicitly TO:CC one of these addresses, and not # already filtered out above, they are trashed. :0: * !^(To|Cc):[EMAIL PROTECTED] * !^(To|Cc):[EMAIL PROTECTED] * !^(To|Cc):[EMAIL PROTECTED] * !^(To|Cc):[EMAIL PROTECTED] * !^(To|Cc):[EMAIL PROTECTED] * !^(To|Cc):[EMAIL PROTECTED] * !^(To|Cc):[EMAIL PROTECTED] * !^(To|Cc):[EMAIL PROTECTED] * !^(To|Cc|From):[EMAIL PROTECTED] * !^(To|Cc|From):[EMAIL PROTECTED] * !^(To|Cc|From):[EMAIL PROTECTED] /home/yuser/mail/spam # Forward a copy of mail from ebay to my ebay cell address to my cell # phone :0 c * ^From:[EMAIL PROTECTED] * ^To:[EMAIL PROTECTED] ! [EMAIL PROTECTED] :0 * ^From:[EMAIL PROTECTED] * ^To:[EMAIL PROTECTED] /home/yuser/mail/ebay :0: * ^X-Spam-Status: Yes /home/yuser/mail/spam I then use another fetchmail and procmail on my home pc to get it from my ISP shell account and filter it to my specific folders. # Mailing Lists :0: * ^(To|Cc):.*luau* /home/frank/mail/Mailing-Lists/Luau # Bugtraq :0: * ^List-Id:.*bugtraq* /home/frank/mail/Mailing-Lists/Bugtraq # NT Bugtraq :0: * ^Sender:.*NTBugtraq* /home/frank/mail/Mailing-Lists/NT\ Bugtraq :0: * ^Mailing-List:.*openoffice\.org* /home/frank/mail/Mailing-Lists/Open-Office :0: * ^(To|Cc):.*epic\.org /home/frank/mail/Mailing-Lists/Epic # Specific Filters :0: * ^Subject:.Potential_Junk /home/frank/mail/Filtered :0: * ^Subject:.Maillog /home/frank/mail/Filtered :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Filtered :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Work/Frank :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Work/Typhanny :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Work/Typhanny :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Jobs/Washington\ Post :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Friends/Angie :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Friends/Tom :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Friends/Steph # Ebay :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Ebay/Outbid :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Ebay/Ended :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Ebay/Bid-Confirm :0: * ^Subject:.*Question\ for \seller* /home/frank/mail/Ebay/Questions :0: * ^From:[EMAIL PROTECTED] /home/frank/mail/Ebay/Other Here is my home PC's fetchmailrc: set daemon 600 poll pohaku.hi.net protocol imap preauth ssh plugin "ssh -i /home/frank/.ssh/id_rsa [EMAIL PROTECTED] /usr/sbin/imapd" fetchall no keep I gather my mail from my ISP with IMAP wrapped in SSH. That way all of my mail is encrypted and my password is not sent in the clear every 10 minutes. This part took me the longest to get working correctly. I am sure my procmail filters are not the most efficient and I could probably state them in 20 different methods but they work as I need and I can easily go back and add and subtract as required. I hoping this thread turns good so I can get more ideas. I added some xx's in my addresses here to protect myself from getting even further spammed..
