4 messages in net.sourceforge.lists.courier-maildrop[maildropl] Maildrop filtering not wo...
FromSent OnAttachments
Flora DruFeb 7, 2006 2:12 am 
Flora DruFeb 7, 2006 10:43 pm 
Devin RubiaFeb 8, 2006 6:10 am 
PollywogFeb 8, 2006 12:55 pm 
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] Maildrop filtering not workingActions...
From:Flora Dru (dr@dicts.mak.ac.ug)
Date:Feb 7, 2006 2:12:39 am
List:net.sourceforge.lists.courier-maildrop

Hi all,

I'm setting up a new mail server (postfix 2.2.8 + swebmail 5.0.7 + maildrop 2.0.1 + courier-imap 4.0.6 and of course courier authlib 0.58) on an AMD64 machine running on opensuse linux.

My setup is for virtual users and i have put a global maildirfilterconfig in /usr/lib/sqwebmail/etc its entries MAILDIRFILTER=../.mailfilter MAILDIR=./Maildir

And i get 'Edit mail filters' and 'Edit autoreplies' menus when i login in sqwebmail.

I go ahead to create filtering rules using the 'Edit mail filters' however they don't work or am missing something.

The .mailfiliter file is created in the user's home directory i.e /home/vmail/virtual1.domain.com/user1

I for example set the following rule to deliver mail whose body contains phd to a folder called phd but all mail gets delivered to the main Maildir directory (new).

#MFMAILDROP=2 # # DO NOT EDIT THIS FILE. This is an automatically generated filter.

FROM='use@virtual1.domain.com' import SENDER if ($SENDER eq "") { SENDER=$FROM }

##Op:contains ##Header: ##Value:phd ##Folder:.PHD ##From: ##PlainString ##Body ##Name:PHD

if ((/phd/:b)) { to "./Maildir/.PHD/." }

to "./Maildir/."

in my /etc/postfix/main.cf mailbox_command = /usr/local/bin/maildrop -d "$USER" virtual_transport = maildrop maildrop_destination_recipient_limit = 1

in /etc/postfix/master.cf maildrop unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/bin/maildrop -d ${recipient}

ls -l /home/vmail drwx------ 4 vmail vmail 4096 Feb 6 14:35 virtual1.domain.com

ls -l virtual1.domain.com drwx------ 3 vmail vmail 4096 Feb 7 09:04 user1 drwx------ 3 vmail vmail 4096 Feb 7 09:56 user2

ls -l user1 -rw------- 1 vmail vmail 322 Feb 6 14:40 .maildirfilter drwx------ 13 vmail vmail 4096 Feb 6 14:40 Maildir

ls -l Maildir drwx------ 13 vmail vmail 4096 Feb 6 14:40 . drwx------ 3 vmail vmail 4096 Feb 7 09:56 .. drwx------ 5 vmail vmail 4096 Feb 3 18:33 .Drafts drwx------ 5 vmail vmail 4096 Feb 6 12:43 .PHD drwx------ 5 vmail vmail 4096 Feb 3 18:34 .Sent drwx------ 5 vmail vmail 4096 Feb 6 12:40 .Trash drwx------ 2 vmail vmail 4096 Feb 3 11:52 courierimaphieracl -rw-r--r-- 1 vmail vmail 520 Feb 3 17:17 courierpop3dsizelist drwx------ 2 vmail vmail 4096 Feb 7 10:18 cur -rw------- 1 vmail vmail 2038 Feb 7 10:18 maildirsize drwx------ 2 vmail vmail 4096 Feb 7 10:18 new -rw------- 1 vmail vmail 124 Feb 7 10:18 sqwebmail-config drwx------ 2 vmail vmail 4096 Feb 7 09:57 sqwebmail-curcache -rwx------ 1 vmail vmail 1 Feb 7 10:18 sqwebmail-curcache.nfshack -rw------- 1 vmail vmail 73 Feb 7 09:57 sqwebmail-ip -rw------- 1 vmail vmail 1 Feb 7 10:18 sqwebmail-timestamp -rw------- 1 vmail vmail 17 Feb 7 10:18 sqwebmail-token drwx------ 2 vmail vmail 4096 Feb 7 10:18 tmp

/etc/maildroprc is DEFAULT=Maildir

Please help advise on what my problem could be.

Thanks Florence