Sam Varshavchik píše v Ne 03. 07. 2005 v 18:32 -0400:
> David Bruha writes:
>
> > Sam Varshavchik píše v Ne 03. 07. 2005 v 08:41 -0400:
> >> David Bruha writes:
> >>
> >> > Our MTA setup:
> >> > Complete courier-mta suite is installed on debian server, maildrop
> > runs
> >> > in embedded mode, all mail users are virtual, their homedirs are
> > read
> >> > from the mysql database.
> >> >
> >> > When I create a filter via SqWebMail, filter is created
> > (as .mailfilter)
> >> > but never used. Am I right it is never executed because of the -M
> >> > parameter in the courierd config file?
> >>
> >> No.
> >>
> >> If you used the "default mailbox" attribute when setting up accounts
> > in
> >> mysql, the default mailbox attribute essentially overrides
> > DEFAULTDELIVERY.
> >
> > Thank you for your replies.
> >
> > Sam, this is not the case, in the database we have only the HOMEDIR
> > atribute set. The filtering works the only problem is it works only with
> > the files in the .mailfilters directory (those use included files as
> > written in the docs) and we would like to let users set their
> > autoreplies via SqWebMail. I think I'm just overlooking something
> > trivial.:(
>
> Perhaps you've installed a .courier file, which would also override
> DEFAULTDELIVERY.

Thank you for your input - I think I have realized the problem.

As I have written, we have the -M .mailfilters/default parameter set in
the maildrop call and I assume maildrop won't execute the .mailfilter
file in user's homedir. Therefore I have created a workaround and before
the final delivery instruction (well - the final include file ;)) in
the .mailfilters/default I am calling another include file:

include "/etc/courier/maildroprcs/userfilter"

that contains:

exception {
        include "$HOME/.mailfilter"
}

Now we can enable user defined mail filters for any users we want.

Sam:
Is this the correct way? Or is there a better alternative?

Regards,
David Bruha



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to