2 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Relationship Between ...
FromSent OnAttachments
tin...@tintax.netOct 25, 2006 5:29 am 
Devin RubiaOct 25, 2006 7:35 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Relationship Between Maildrop and Courier-AuthlibActions...
From:Devin Rubia (dev@thezone.net)
Date:Oct 25, 2006 7:35:16 am
List:net.sourceforge.lists.courier-maildrop

On Wed, Oct 25, 2006 at 01:29:30PM +0100, tin@tintax.net wrote:

Hi,

I\'m setting up postfix so that mail for virtual users is delivered via maildrop. I made the initial assumption that I needed to configure postfix to invoke maildrop with the user configuration (e.g. path to home directory, maildir, quota, user and group ids) passed as command line arguments so it was available to the maildrop filter. However, maildrop got very upset because it couldn\'t talk to courier-authlib (not surprising as I wasn\'t planning on installing it until I tackle courier-imap).

Having done some digging I now understand that maildrop (even the standalone version) is now completely integrated with authdaemon. I also gather that authlib doesn\'t just do \'authentication\' (as I define that word) but will also retrieve the user configuration for a given userid. I presume that it is in this mode that maildrop uses authlib. That kind of makes sense (after all, the MTA might not be able to pass maildrop this information) but I can\'t work out how to get at this information from within my filter.

So here are my questions:

1. Am I right that I must have courier-authlib running to use maildrop?

Not strictly. If you only had system accounts, then it's not needed. You could also hack things up to support virtual users without it, but Why would you?

2. Does maildrop just use it to retrieve user information (i.e. not try to actually \'authenticate\' anything)?

Correct. Well, you could make the case that it is "authenticating" that the account exists but it is not checking credentials, passwords, etc.

3. How do I get at this retrieved information in my filter?

Using the examples you had stated:

path to home directory: $HOME maildir: $DEFAULT quota: $MAILDIRQUOTA user and group ids: `id -u`, `id -un`, `id -g`, `id -gn`

Do a 'man maildropfilter' and search for "PREDEFINED VARIABLES"

I apologise if these are really stupid questions. I\'ve spent hours reading up on this and the fog just hasn\'t lifted. I tried to access this mailing list\'s archives but sourceforge seems to be having a sulk.