3 messages in net.sourceforge.lists.courier-maildropRE: [maildropl] userdb problem with v...
FromSent OnAttachments
Richard JohnsonApr 29, 2002 10:07 am 
Alex PorrasApr 29, 2002 12:51 pm 
Richard JohnsonApr 30, 2002 1:20 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] userdb problem with virtual accounts?Actions...
From:Alex Porras (apor@ena.com)
Date:Apr 29, 2002 12:51:27 pm
List:net.sourceforge.lists.courier-maildrop

Dumb question:

did you run 'makeuserdb' after adding the virtual user?

-----Original Message----- From: Richard Johnson [mailto:rdu@river.com] Sent: Monday, April 29, 2002 12:07 PM To: cour@lists.sourceforge.net Cc: rdu@river.com Subject: [maildropl] userdb problem with virtual accounts?

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.examp le.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?