Killfile [WAS: Re: that old Linux argument]
anders at trudheim.co.uk
Tue Jul 22 20:27:31 UTC 2008
* Anders Karlsson <anders at trudheim.co.uk> [20080722 14:50]:
> * Andrew Kelly <akelly at corisweb.org> [20080722 13:12]:
> > On Tue, 2008-07-22 at 11:38 +0100, Alan Cox wrote:
> > > > Do you have a sample config for me to look at? I have some vermin I
> > > > want to killfile, and I've not had time to set anything up yet...
> > >
> > > If you are using claws then use
> > >
> > > Create Filter Rule by From or Subject
> > >
> > > and move them into another folder (eg 'Statler and Waldorf')
> > Or, if you prefer procmail:
> > :0
> > * ^From:.*addressToBeHandled
> > /dev/null
> Thank you both of you. I'm using offlineimap and mutt, so can't quite
> use either suggestion. Once I have a working solution, I'll post it in
> case useful for others.
Okay. Short background:
* I run own mailserver, postfix, virtual domains etc.
* I run Dovecot for IMAP/IMAPS
* I do this on Fedora 8
To implement the filtering, I read
and I used:
Essentially, you change Postfix from using maildrop to using dovecot
for delivery, and you install dovecot-sieve. Once set up so that
dovecot reads the .dovecot.sieve file (contact me off list if you want
more detailed notes on how this is set up) you're up and running.
A simple sieve script is:
if header :comparator "i;ascii-casemap" :contains ["Subject"] ["GNU/Linux"]
if header :contains ["From"] ["address1 at domain.one", "address2 at domain.two"]
And thus you implement a kill-file with Postfix, Dovecot and CMU
I'm now off to cook up the recipes I will need.
More information about the users