maildrop 1.3.4 keeps telling me my virtual maildir users are
invalid, but I can't spot why. Can someone give me a hand, or
failing that, a boot to the head?
I'm trying to set up maildirs for virtual users in domains I host,
intending eventually to let users retrieve mail via courier-imap.
I've installed maildrop 1.3.4 using openbsd's ports tree, with make
modified to add --enable-userdb and a short list of
--enable-trusted-users='...'.
Changing the config further to --enable-restrict-trusted=0 has no
effect on this problem. Neither does presence or absence of
suid/sgid mode bits on /usr/local/bin/maildrop and friends.
The umbrella user, 'vmail', homedir and passwd entry are set up as
follows:
drwx------ 2 vmail vmail 512 Apr 29 00:21 /home/vmail/
vmail:*:1002:1002:Virtual Mail User:/home/vmail:/bin/ksh
In addition, my userdb is set up as follows. In /etc/userdb/default:
vmail uid=1002|gid=1002|home=/home/vmail|shell=/bin/ksh|systempw=*
1002= vmail
And in /etc/userdb/host.example.com:
use...@host.example.com
uid=1002|gid=1002|home=/home/vmail|mail=/home/vmail/host.example.com/user1|systempw=*
I've created the referenced maildirs with maildirmake in the domain
subdirectory of /home/vmail:
drwxr-x--- 3 vmail vmail 512 Apr 29 00:22 host.example.com/
drwx------ 5 vmail vmail 512 Apr 29 00:22 host.example.com/user1/
drwx------ 2 vmail vmail 512 Apr 29 00:22 host.example.com/user1/cur/
drwx------ 2 vmail vmail 512 Apr 29 00:22 host.example.com/user1/new/
drwx------ 2 vmail vmail 512 Apr 29 00:22 host.example.com/user1/tmp/
However, I still get the following error:
% cat blah | /usr/local/bin/maildrop -d use...@host.example.com
/usr/local/bin/maildrop: Invalid user specified.
A couple days of poring over mailing list archives, examples, and
reading man pages + FAQs haven't led me to understand -why- the user
is invalid.
Can you spot the mistake in my configuration above? Or am I not
providing data that greater experience considers useful for spotting
my mistake?
Or should I look at installation configuration for a fix instead?
Richard