4 messages in net.sourceforge.lists.courier-maildrop[maildropl] `maildrop -d` fails with ...
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:[maildropl] `maildrop -d` fails with users in userdbActions...
From:Kurt Yoder (ktyc@richard-group.com)
Date:Oct 6, 2004 2:24:59 pm
List:net.sourceforge.lists.courier-maildrop

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.