On Thu, Jun 7, 2012 at 7:09 PM, Sam Varshavchik <mrsam@...> wrote:
> Schiz0 writes:
>> I'm setting up virtual users with postgresql and maildrop. I setup
>> authlib to connect to my pgsql database. I tested it with authtest and
>> it works successfully.
>> What do I have to do to set up per-user filters? Right now, mail is
>> stored in /usr/local/vmail/domain.tld/user@.../ in a Maildir
>> format. In my sql database, that dir is set to both the home folder
>> and the maildir folder. Can I put .mailfilter in there? Will it affect
>> anything (dovecot?) accessing the maildir?
> maildrop is not very convenient for something that does not look like an
> account with a home directory, and a maildir.
> maildrop wants to see, either via authlib, or from the /etc/passwd,
> something like looks like a home directory, and (by default) $HOME/Maildir
> being the mailbox. $HOME/.mailfilter is where maildrop expects to read its
> filtering instructions. You do not have a home directory here, just a
> maildir directory.
> maildrop's configuration can be beaten into looking for something like that,
> with the home directory and maildir being the same directory, but this won't
> always work very well. If Courier-IMAP is also in use, an attempt to create
> an IMAP folder named "mailfilter" will fail, or it will succeed, but result
> in mail delivery to the account failing. Not recommended.
Ok, thank you for the advice. I'll change my directory setup to
include a home dir, plus a Maildir underneath it.
>> And secondly, is there anything I have to do to enable authlib within
>> maildrop? I have postfix setup to pipe into maildrop, but it still
>> gives me an error. The logs are below.
>> Jun 7 09:41:29 ananke postfix/pipe: 3W7SZx0C5RzHmy:
>> to=<user@...>, relay=maildrop, delay=0.03,
>> delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (user unknown. Command
>> output: Invalid user specified. )
>> # maildrop -v
>> maildrop 2.5.5 Copyright 1998-2005 Double Precision, Inc.
>> GDBM/DB extensions enabled.
>> Maildir quota extension are now always enabled.
>> This program is distributed under the terms of the GNU General Public
>> License. See COPYING for additional information.
> This maildrop was not compiled with courier-authlib. courier-authlib must be
> installed first, then maildrop built with the courier-authlib libraries
Ok, thanks. I looked at the Makefile for the ports collection and it
has a manual option there to enable authlib.