Re: [maildropl] Virtual Users Setup
Brought to you by:
mrsam
From: Sam V. <mr...@co...> - 2012-06-07 23:09:38
|
Schiz0 writes: > Hello, > > 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/us...@do...d/ 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. > 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. > > Maillog: > Jun 7 09:41:29 ananke postfix/pipe[5404]: 3W7SZx0C5RzHmy: > to=<us...@do...d>, 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 installed. |