[maildropl] Simple maildrop using authlib and userdb installation
Brought to you by:
mrsam
From: Jens E. M. Jr. <mai...@ma...> - 2006-10-15 18:47:39
|
Dear Maildrop Folks, I am running FC4 with postfix and setup virtual mail users on an internal computer. All works well and I can send mail to my only virtual user, te...@do.... I downloaded the latest sources for maildrop and authlib and built rpms. I have setup /etc/authlib/userdb which contains: te...@do... uid=501|gid=501|home=/var/spool/vmail/domain1.com/test|quota="500000" As root: # authtest te...@do... Authentication succeeded. Authenticated: te...@do... (uid 501, gid 501) Home Directory: /var/spool/vmail/domain1.com/test Maildir: (none) Quota: "500000" Encrypted Password: (none) Cleartext Password: (none) Options: (none) # maildrop -v9 -d te...@do... maildrop 2.0.2 Copyright 1998-2005 Double Precision, Inc. GDBM extensions enabled. Maildir quota extension enabled. This program is distributed under the terms of the GNU General Public License. See COPYING for additional information. Yet when I send mail to this user $ mail te...@do... -s"Test b1" Hi. It bounces: Oct 15 12:31:28 kira postfix/pipe[30538]: C0223FA9A: to=<te...@do...>, relay=maildrop, delay=1, status=bounced (user unknown. Command output: Invalid user specified. ) My /etc/postfix/master.cf entry is: maildrop unix - n n - - pipe flags=Ru user=vmail argv=/usr/bin/maildrop -d ${recipient} where vmail: uid=501, gid=501 And my virtual directories look like this: # ll /var/spool/vmail/domain1.com/test/ total 24 drwxrwxr-x 2 vmail mail 4096 Oct 8 14:19 cur drwxrwxr-x 2 vmail mail 4096 Oct 14 19:23 new drwxrwxr-x 2 vmail mail 4096 Oct 14 19:23 tmp My authlib directory is: # ll /etc/authlib/ total 97 -rw-rw-r-- 1 daemon daemon 3754 Oct 14 16:42 authdaemonrc -rw-rw---- 1 daemon daemon 3708 Oct 13 10:02 authdaemonrc.dist -rw-rw---- 1 daemon daemon 8229 Oct 13 10:42 authldaprc -rw-rw---- 1 daemon daemon 8229 Oct 13 10:03 authldaprc.dist -rw-rw---- 1 daemon daemon 8187 Oct 13 10:42 authmysqlrc -rw-rw---- 1 daemon daemon 8187 Oct 13 10:03 authmysqlrc.dist -rw-rw---- 1 daemon daemon 7905 Oct 13 10:42 authpgsqlrc -rw-rw---- 1 daemon daemon 7905 Oct 13 10:02 authpgsqlrc.dist -rw------- 1 root root 87 Oct 14 16:53 userdb -rw-r--r-- 1 root root 12376 Oct 14 16:53 userdb.dat -rw-r--r-- 1 root root 0 Oct 14 16:53 userdb.lock -rw------- 1 root root 12288 Oct 14 16:53 userdbshadow.dat My maildroprc is empty # ll /etc/maildroprc -rw-r--r-- 1 root root 0 Oct 14 19:28 /etc/maildroprc Reading previous postings, I changed: # chmod u+s /usr/bin/maildrop # ll /usr/bin/maildrop -rwsr-xr-x 1 root mail 166760 Oct 15 11:24 /usr/bin/maildrop Is there anything I missed? Any suggestions? Thanks, Jens |