5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] If there isn't filter...
FromSent OnAttachments
Alessio CecchiNov 11, 2004 5:59 am 
Bill GradwohlNov 11, 2004 6:12 am 
Alessio CecchiNov 11, 2004 6:48 am 
Bill GradwohlNov 11, 2004 7:16 am 
Alessio CecchiNov 12, 2004 2:01 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] If there isn't filter file in $HOME [SOLVED]Actions...
From:Alessio Cecchi (ales@aruba.it)
Date:Nov 12, 2004 2:01:53 am
List:net.sourceforge.lists.courier-maildrop

Alessio Cecchi ha scritto:

I have a mail server with qmail + vpopmail + sqwebmail + qmailadmin.

I have activated the function --enable-spam-command="|preline /usr/bin/maildrop .mailfilter" in qmailadmin, so any users can enable or disable mail filering, and with sqwebmail tool can create filer very simply.

But there is a problem. Many customers activate the function, from qmailadmin, before creating the filter in sqwemail.

With this script in .qmail:

#!/bin/bash if [ -e .mailfilter ]; then /usr/bin/maildrop .mailfilter else cat >.mailfilter<<EOF # DO NOT EDIT THIS FILE. This is an automatically generated filter.

FROM='post@domain.com' import SENDER if (`echo '$SENDER'` eq "") { SENDER=`echo '$FROM'` }

to "./Maildir/." EOF /usr/bin/maildrop .mailfilter fi

If there isn't a .mailfilter one is created.

Bye