

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
7 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] maildroprc variables| From | Sent On | Attachments |
|---|---|---|
| Dylan Markow | Nov 27, 2006 4:06 pm | |
| Sam Varshavchik | Nov 27, 2006 4:56 pm | |
| Dylan Markow | Nov 27, 2006 9:54 pm | |
| Sam Varshavchik | Nov 28, 2006 4:05 am | |
| Dylan Markow | Nov 28, 2006 9:37 am | |
| Tony Earnshaw | Nov 28, 2006 9:45 am | |
| Sam Varshavchik | Nov 28, 2006 3:14 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [maildropl] maildroprc variables | Actions... |
|---|---|---|
| From: | Dylan Markow (dmar...@gmail.com) | |
| Date: | Nov 27, 2006 9:54:10 pm | |
| List: | net.sourceforge.lists.courier-maildrop | |
After a little more research I came up with the following.
When running the command "maildrop -V10 -d dm...@example.com" as root, the following is output:
maildrop: authlib: groupid=5000 maildrop: authlib: userid=5000 maildrop: authlib: logname=dm...@example.com, home=/var/spool/mail/virtual, mail=/var/spool/mail/virtual/example.com/dm/ maildrop: Changing to /var/spool/mail/virtual
When run as the user "virtual" instead of root, the output it:
maildrop: authlib: groupid=5000 maildrop: authlib: userid=5000 maildrop: authlib: logname=dm...@example.com, home=/var/spool/mail/virtual, mail=/var/spool/mail/virtual/example.com/dm/ maildrop: Changing to /home/virtual
Note the 4th line is different when run as virtual. When I run as root, it recognizes all of the fields properly (i.e. $DEFAULT becomes /var/spool/mail/virtual/example.com/dm). However, when run as virtual, $DEFAULT remains "./Maildir").
On 11/27/06, Sam Varshavchik <mrs...@courier-mta.com> wrote:
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.
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Courier-maildrop mailing list Cour...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/courier-maildrop







