hy all, i cant make running the mailfilter.

some one see where i'm wrong, or what i should or not ?

.../etc/courierd
DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop"
MAILDROPDEFAULT="| /usr/lib/courier/bin/maildrop"


the userdir:
.../Maildir
drwxr-xr-x    7 503   502          4096 Nov  9 00:13 .
drwxr-xr-x    3 503   502          4096 Nov  9 00:07 ..
-rw-------    2 503   502          4096 Nov  9 00:07 .mailfilter
-rw-------    1 503   502            17 Nov  8 04:03 vacation.msg
drwx------    2 503   502          4096 Nov  9 00:15 cur
...

the .mailfilter:
cc $DEFAULT
/^To:.*/
getaddr($MATCH) =~ /^.*/;

MATCH=tolower($MATCH)
flock "vacation.lock" {
        `fgrep -iqx "$MATCH"
/data/mail/hda/mike.edv-support.ch/Maildir/vacation.lst 2>/dev/null || { \
                  echo "$MATCH" >>
/data/mail/hda/mike.edv-support.ch/Maildir/vacation.lst ; \
                  exit 1 ; \
              } `
}
if ( $RETURNCODE == 0 )
   exit
to "| ( cat - ; echo ''; cat
/data/mail/hda/mike.edv-support.ch/Maildir/vacation.msg) | $SENDMAIL"


it tried also to put a file named maildirfilterconfig in the config dir
MAILDIRFILTER=../.mailfilter

also tried out was:
MAILDIRFILTER=/.mailfilter
MAILDIRFILTER=.mailfilter


best regards, mike



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Gadgets, caffeine, t-shirts, fun stuff.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to