Re: Virtual Users Setup

Schiz0 <[email protected]>
Newsgroups gmane.mail.maildrop
Message-ID <CAELCQXncb256vuLL_N-28yoW15302rBbOhwrVQOmDLeRvDb-pw@mail.gmail.com>
On Thu, Jun 7, 2012 at 7:09 PM, Sam Varshavchik <[email protected]> wrote:
> 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.

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.
>>
>> 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.
>

Ok, thanks. I looked at the Makefile for the ports collection and it
has a manual option there to enable authlib.

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.