Re: [courier-users] Mail Filters

This is a discussion on Re: [courier-users] Mail Filters within the Courier-Imap forums, part of the Mail Servers and Related category; On 7 Jan 2008 16:38, cyclops@titanshadow.com wrote: > > The webmail server that comes with courier, sqwebmail, ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-07-2008
Mark Constable
 
Posts: n/a
Default Re: [courier-users] Mail Filters

On 7 Jan 2008 16:38, cyclops@titanshadow.com wrote:
> > The webmail server that comes with courier, sqwebmail, will allow users
> > to create their own filtering rules. See if that does what you want.

>
> Thank you for your quick responce. I have thought about that but I was
> really hoping to use the ~/.mailfilter file for it. However, that doesn't
> seem to want to work.


The sqwebmail interface can create and manage that
~/.mailfilter file.

> Do I have to use the sqmail interface to create filters and have them work?


You can use any self-made method to manage ~/.mailfilter
files but keep in mind that if you ever also engage
sqwebmail then they need to be in a fairly strict format
for sqwebmail to also use.

> I don't really want to have a webmail inteface running as I don't even have
> apache installed on the server.


You can use any shell based language to manipulate
~/.mailfilter files according to the maildrop rules here...

http://www.courier-mta.org/maildrop/maildropfilter.html

One hint is that the global /etc/courier/maildroprc, if
it exists, is looked up first before the individual users
~/.mailfilter so if you want to do some unique per user
filtering before some generic rules in maildroprc then
something like this could be useful at the beginning of
/etc/courier/maildroprc...

`test -f $HOME/.prefilter`
if (!$RETURNCODE)
{
include $HOME/.prefilter
}
... the rest of maildroprc

Then you have the chance of engaging some unique per user
condition, with or without the follow on sitewide filtering
in maildroprc, and then also offer a fallthru ~/.mailfilter
condition that could be created manually by the end user
(if they have access to sqwebmail to create their own rules).

--markc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0