Procmail filtering

John Summerfied debian at herakles.homelinux.org
Sat Jan 14 23:22:25 UTC 2006


Lovell Mcilwain wrote:
> Hello all,
> 
> I seem to be having a bit of trouble getting procmail to filter e mails 
> to individual mailboxes on my FC4 machine.
> 
> I am using fetchmail to poll my email to my machine and I want to use 
> procmail rather my then my mail client to filter my e mail.  I don't 
> have many mailboxes but I change machines often enough that its hard to 
> keep updating my mail client filters.
> 
> When I tail my mail.log file it does show that .fetchmail is looking at 
> my .forward file in my home directory so I am assuming that there is an 
> issue with the syntax of my .procmailrc file.  Im new to using procmail 
> so I copied and pasted some procmail examples into my .procmailrc file 
> and gave it a whirl but no luck.
> 
> Any help is appreciated..
> 
> 
> Here are what I have in my files:
> 
> .forward:

Start by removing .forward, and use the MTA (sendmail, postfix or whatever).

They're set up by default to invoke procmail.
> 
> "|IFS=' ' && exec /usr/bin/procmail || exit 75 #myusername"
> 
> .procmailrc:
> 
> # .procmailrc
> # routes incoming mail to appropriate mailboxes
> VERBOSE=off
You want verbose on to tell you what's happening.


> MAILDIR=~/mail/IMAP #elm users might use $HOME/Mail instead
> #PMDIR=~/.procmail
> DEFAULT=/var/mail/username
> LOGFILE=~/procmail.log
> #INCLUDERC=$PMDIR/default.rc
> #INCLUDERC=$PMDIR/general.rc
> #INCLUDERC=$PMDIR/lists.rc
> #INCLUDERC=$PMDIR/guestbook.rc
> #INCLUDERC=$PMDIR/spam.rc
> 
> # Put mail from mailing lists into mailboxs
> :0:
> * ^Subject:.*[Subject]
> Groups
> 
> :0:
> * ^From.*fedora.*list.*list.*@
> Fedora2
> 
> 


-- 

Cheers
John

-- spambait
1aaaaaaa at computerdatasafe.com.au  Z1aaaaaaa at computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list




More information about the fedora-list mailing list