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.