2 messages in net.sourceforge.lists.courier-maildrop[maildropl] .mailfilter not getting u...
FromSent OnAttachments
Andrew G. HammondJul 3, 2002 12:27 pm.txt
Andrew G. HammondJul 4, 2002 8:09 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:[maildropl] .mailfilter not getting used... ?!Actions...
From:Andrew G. Hammond (dr@xyzzy.dhs.org)
Date:Jul 3, 2002 12:27:59 pm
List:net.sourceforge.lists.courier-maildrop
Attachments:

-- Andrew G. Hammond mailto:dr@xyzzy.dhs.org http://xyzzy.dhs.org/~drew/ 56 2A 54 EF 19 C0 3B 43 72 69 5B E3 69 5B A1 1F 613-389-5481 5CD3 62B0 254B DEB1 86E0 8959 093E F70A B457 84B1 "To blow recursion you must first blow recur" -- me

I've been trying to get my .mailfilter to work, however courier doesn't seem to even notice it's existance.

I'm running a debian/sid linux system and have installed the following packages (and versions):

xyzzy:~% dpkg -l | grep courier ii courier-authda 0.37.3-7 Courier Mail Server authentication daemon ii courier-base 0.37.3-7 Courier Mail Server Base System ii courier-doc 0.37.3-7 Documentation for the Courier Mail Server ii courier-imap 1.4.3-7 IMAP daemon with PAM and Maildir support ii courier-imap-s 1.4.3-4 IMAP daemon with SSL, PAM and Maildir suppor ii courier-maildr 0.37.3-7 Mail delivery agent with filtering abilities ii courier-mta 0.37.3-7 Mail Transport Agent of the Courier Mail Ser ii courier-mta-ss 0.37.3-4 Courier Mail Transport Agent (SMTP over SSL) ii courier-ssl 0.37.3-4 Courier Mail Server SSL Package ii courier-webadm 0.37.3-7 Web-based administration tool for the Courie

I believe that I have set permissions correctly:

xyzzy:~% ls -ld . drwxr-x--- 49 drew drew 2627 Jul 3 13:06 . xyzzy:~% ls -l .mailfiltr -rw------- 1 drew drew 1220 Jul 3 12:56 .mailfilter xyzzy:~% ls -ld Maildir drwx------ 33 drew drew 1039 Jul 3 15:02 Maildir/

Here's my .mailfilter file (which seems to parse ok, and delivers just fine in manual mode using 'maildrop -V 6 .mailfilter < test_message.txt'). Yes, I know that it's hideously inefficient, but first I need to get it working at all! :)

# Place mailinglist mail in seperate folders.

# ACM TechNews list LIST_PATERN_HDR=escape('Subject:') LIST_PATERN_VAL=escape('ACM TechNews') if (/^${LIST_PATERN_HDR}.*${LIST_PATERN_VAL}/) { to "$HOME/Maildir/.Lists.ACM TechNews" }

# Courier-users list LIST_PATERN_HDR=escape('Subject:') LIST_PATERN_VAL=escape('[courier-users]') if (/^${LIST_PATERN_HDR}.*${LIST_PATERN_VAL}/) { to "$HOME/Maildir/.Lists.Courier" }

# Debian Security list LIST_PATERN_HDR=escape('Subject:') LIST_PATERN_VAL=escape('[SECURITY]') if (/^${LIST_PATERN_HDR}.*${LIST_PATERN_VAL}/) { to "$HOME/Maildir/.Debian.Security" }

# Postgres SQL list LIST_PATERN_HDR=escape('Subject:') LIST_PATERN_VAL=escape('[SQL]') if (/^${LIST_PATERN_HDR}.*${LIST_PATERN_VAL}/) { to "$HOME/Maildir/.Lists.Postgres SQL" }

# further lists here....

# place all mail that doesn't list me as a recipient in a seperate folder. # relies on $HOME/.my_email_addresses, a plain text file listing all my # email addresses, one address per line.

I_AM_LISTED=0 foreach /^(To|Cc|Bcc): .*/ { foreach (getaddr ($MATCH)) =~ /.+/ { if (lookup($MATCH, "$HOME/.my_email_addresses")) { I_AM_LISTED=1 } } } $I_AM_LISTED || to "$HOME/Maildir/.UnAddressed"

I've snooped the log files and don't see any obvious errors. From what I've read about the courier mta, it uses maildrop by default for final delivery, so it _should_ be running.

I'm sure I've just missed something really obvious, but darned if I can spot it! Any suggestions would be greatly appreciated!