On Wed, 4 Jul 2001, Mathew Simon wrote:
> Current Behavior of Maildrop:
> The documentation as part of Sqwebmail and Maildrop gives the impression
> that if there is a ".mailfilter" file present in the home directory, then it
> would be used. But if a ".mailfilter" file is deposited in the home
> directory (as specified in the userb) of a virtual email user, then maildrop
> won't use it. Instead maildrop is looking for the mailfilter in the
> home-directory of the real linux user "vmail".
>
> If a mailfilter file is deposited into the home directory of the real
> user-ID "vmail", then this is being used and is in effect specifying a
> common filter file for all the virtual email user-IDs. This is weird.
Your setup sounds exactly like mine, except you've got something
configured wrong.
postfix, maildrop, userdb, sqwebmail. nearly-current versions of all.
I route mail from postfix to maildrop via a transport map entry. Here is
the transport entry in master.cf:
maildrop unix - n n - 30 pipe
flags=R user=vmail argv=/usr/local/bin/maildrop -d ${user}@${nexthop}
(I have my users specified in userdb as 'user@domain')
How are you delivering from postfix to maildrop ?
Because this server is -only- used for mail, I have made the users' home
directories their mail directories as well.
Here is an example line from userdb:
[EMAIL PROTECTED]
systempw=********|home=/vmf/t/te/test.10441|mail=/vmf/t/te/test.10441|uid=1004|gid=1004|gecos=Test
Account|quota=10485760S
In the user's home directory, it looks like this:
# cd /vmf/t/te/test.10441; ls -la
total 15
drwx------ 5 vmail vmail 512 Jun 6 15:55 .
drwxr-xr-x 49 vmail vmail 1536 Jul 5 11:45 ..
-rw------- 1 vmail vmail 4998 Jun 27 04:37 .mailfilter
drwx------ 2 vmail vmail 512 May 3 18:22 cur
-rw-r--r-- 1 vmail vmail 36 May 3 18:22 maildirfilterconfig
-rw-r----- 1 vmail vmail 703 Jul 4 15:03 maildirsize
drwx------ 2 vmail vmail 8192 Jul 4 15:03 new
drwx------ 2 vmail vmail 512 Jul 4 15:03 tmp
The contents of maildirfilterconfig are:
MAILDIRFILTER=.mailfilter
MAILDIR=.
Mail filters are editable via SQWebmail, and work.
I can also define a system-wide filter in /etc/maildroprc, executed
before the per-user filters are.
How are you doing it? What does the postfix side of your equation
look like?
--
Charlie Watts
[EMAIL PROTECTED] Frontier Internet
Systems Janitor and Network Plumber http://www.frontier.net/