4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] `maildrop -d` fails w...
FromSent OnAttachments
Kurt YoderOct 6, 2004 2:24 pm 
Sam VarshavchikOct 6, 2004 3:24 pm 
Kurt YoderOct 7, 2004 1:21 pm 
Sam VarshavchikOct 7, 2004 3:23 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] `maildrop -d` fails with users in userdbActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Oct 6, 2004 3:24:09 pm
List:net.sourceforge.lists.courier-maildrop

Kurt Yoder writes:

Hello

---problem

I can't get maildrop to find the users in my userdb. However, if I run "userdb -show" I see them. Here is an example of what *should* work, but does not:

# userdb -show kurt uid=89 mail=/var/spool/mail/vhosts/ricolausa.com/kurt home=/var/spool/mail/vhosts/ricolausa.com/kurt gid=89

[so far, so good]

# cat /etc/grub.conf | maildrop -d kurt Invalid user specified.

[but we've proven above that this user *is* valid!]

---some debugging

maildrop *does* work when I use -d with a posix user:

# cat /etc/grub.conf | maildrop -d kyoder [mail is delivered properly]

I looked at the source in maildrop/main.C in run() after "found = find_in_userdb(&maildrop, deliverymode);". It appears that the posix check should *not* have been reached at all, since I do have a userdb.dat. Since it *did* see the posix account, I must assume that the userdb was not found. I'm not sure how further to pinpoint the problem though.

---

Any ideas where to look next?

I am running courier-0.45.6, installed from rpmbuild on RH Enterprise 3.

The version in maildrop that's built as part of Courier uses Courier for all authentication services and address lookups. When Courier invokes maildrop it will take care of looking up the recipient's particulars in userdb, and communicate the relevant information to maildrop via environment variables.