David Bruha wrote:
> Hi,
>
> I have to set local mail fitering rules for several users and I have
> thought it to be a simple job with maildrop. What I did is:
>
> 1. in /etc/courier/courierd I have set
> DEFAULTDELIVERY="| /usr/local/courier/bin/maildrop"
>
> where
> MAILDROPDEFAULT=./Maildir
>
> /etc/courier/maildrop consists of:
> /usr/local/courier/bin/maildrop
>
> 2. in test user's home I have created .mailfilter file with 0600
> permission consisting of:
> VERBOSE=9
> logfile "filter.log"
> log "mailfilter started"
>
> if (/^From: [EMAIL PROTECTED]/)
> {
> cc "!root"
> }
>
> All mail users are virtual users stored in mysql database.
>
fyi if you have maildir set in mysql it will ignore DEFAULTDELIVERY
> Now if I understand it correctly, this test mailfilter should write to
> $HOME/filter.log message "mailfilter started" and if the sender is
> [EMAIL PROTECTED], then also send a copy of this mail to root.
>
> However, it looks as if courier ignores this file - nothing is logged,
> no mail comes to root and no error is logged. Actually
> /var/log/mail.log states successfull delivery.
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users