Sam Varshavchik wrote:
maildrop 1.8.0 requires courier-authlib, for virtual user support.
Courier-authlib does not currently compile on OS-X, due to poor support
from Apple for the GNU toolchain.
OK. I've retrieved and compiled v1.7.0 and I still get the following
error when I attempt to deliver a message via Maildrop:
As invoked at the command line:
$ sudo maildrop -d te...@maildrop.wvfans.net
Invalid user specified.
I am using the following software:
System: Mac OS X 10.3.6 (7R28)
Kernel: Darwin 7.6.0
Apache 1.3.29
PHP 4.3.2
MySQL 4.1.8
Perl 5.8.1
PCRE 5.0
Postfix 2.2-20041212
Courier-IMAP 3.0.8
SquirrelMail 1.4.3a
Python 2.3
GNU Mailman 2.1.5
Maildrop 1.7.0
$ maildrop -v
maildrop 1.7.0 Copyright 1998-2003 Double Precision, Inc.
GDBM extensions enabled.
Enabled Berkeley DB instead of GDBM extensions.
Maildir quota extension enabled.
Virtual user database extension enabled.
This program is distributed under the terms of the GNU General Public
License. See COPYING for additional information.
I compiled Maildrop using the following:
./configure --prefix=/usr/local/maildrop \
--with-db=db \
--enable-userdb \
--with-authmysql \
--with-authldap \
--enable-syslog=1 \
--enable-maildirquota \
--with-trashquota \
--enable-trusted-users='courier maildrop postfix' \
--disable-authlib
Contents of /etc/userdb:
te...@maildrop.wvfans.net[TAB]uid=10004|gid=2002|mail=/var/mail/maildrop.wvfans.net/test/
(the above is all on a single line and [TAB] is actually a TAB character)
Permissions of /etc/userdb:
$ ls -al /etc/user*
-rw------- 1 root wheel 387 2 Feb 23:30 userdb
-rw-r--r-- 1 root wheel 16384 2 Feb 23:30 userdb.dat
-rw-r--r-- 1 root wheel 0 2 Feb 23:30 userdb.lock
-rw------- 1 root wheel 16384 2 Feb 23:30 userdbshadow.dat
Permissions of /var/mail/maildrop.wvfans.net:
$ ls -al /var/mail/maildrop*
drwxr-x--x 3 postfix 2002 102 11 Jul 2004 maildrop.wvfans.net
Permissions of /var/mail/maildrop.wvfans.net/test:
$ sudo ls -al /var/mail/maildrop.wvfans.net/test
total 0
drwx------ 5 10004 2002 170 5 Feb 14:51 .
drwxr-x--x 3 postfix 2002 102 11 Jul 2004 ..
drwx------ 2 10004 2002 68 8 Feb 2004 cur
drwx------ 4 10004 2002 136 8 Feb 2004 new
drwx------ 2 10004 2002 68 8 Feb 2004 tmp
Look up users in /etc/userdb:
$ sudo userdb -show
te...@maildrop.wvfans.net
Look up 'te...@maildrop.wvfans.net':
$ sudo userdb -show te...@maildrop.wvfans.net
uid=10004
gid=2002
mail=/var/mail/maildrop.wvfans.net/test/
Where am I going wrong? Am I testing Maildrop properly from the command
line? Is there another way I can test Maildrop's ability to look up my
virtual users?
Rx