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.