7 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] maildroprc variables
FromSent OnAttachments
Dylan MarkowNov 27, 2006 4:06 pm 
Sam VarshavchikNov 27, 2006 4:56 pm 
Dylan MarkowNov 27, 2006 9:54 pm 
Sam VarshavchikNov 28, 2006 4:05 am 
Dylan MarkowNov 28, 2006 9:37 am 
Tony EarnshawNov 28, 2006 9:45 am 
Sam VarshavchikNov 28, 2006 3:14 pm 
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] maildroprc variablesActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Nov 27, 2006 4:56:50 pm
List:net.sourceforge.lists.courier-maildrop

Dylan Markow writes:

I'm having trouble pulling the MYSQL_MAILDIR_FIELD value into my maildroprc file.

When I call maildrop using the command line, this is the output:

root@local:/var/spool/mail/virtual# maildrop -V10 -d <URL:mailto:dm@example.com> dm@example.com < test.msg maildrop: authlib: groupid=5000 maildrop: authlib: userid=5000 maildrop: authlib: logname=<URL:mailto:dm@example.com>dm@example.com, home=/var/spool/mail/virtual, mail=/var/spool/mail/virtual/example.com/dm/ maildrop: Changing to /var/spool/mail/virtual

I have my maildroprc set to log variables, and it is showing that $DEFAULT is set to /var/spool/mail/virtual/example.com/dm/

However, when Postfix calls maildroprc, $DEFAULT is set to "./Maildir" instead?

My <URL:http://master.cf>master.cf lines are:

maildrop  unix  -       n       n       -       -       pipe   flags=DRhu user=virtual argv=/usr/bin/maildrop -d ${recipient}

Why would this happen?

maildrop has no knowledge who invoked it. It can't really tell if you run it from a shell command, or if another process invokes it. There's obviously something different in the way postfix runs maildrop, compared to how you run it from the command line.

You can also pass the -V10 flag to maildrop when it gets invoked by Postfix. maildrop sends all those log messages to stderr; you'll need to figure out how to get Postfix to log them, somewhere.