Re: Virtual Users Setup
Sam Varshavchik <[email protected]>
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
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/[email protected]/ 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=<[email protected]>, 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Courier-maildrop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/courier-maildrop
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAk/RNKoACgkQx9p3GYHlUOIPngCfThAyPd94MF2FNoHlTnpNOuU7 GoMAn3DbU2awbgelwgjg/TzF4sadRnrE =5IFp -----END PGP SIGNATURE-----