Hi

I searched in the archive and found the following patch for Maildrop with
Qmail+LDAP.

----------------------------------------------------------------------------
----
--- main.C      Mon Jun 25 00:16:11 2001
+++ main.C-patched      Thu Oct 25 13:05:07 2001
@@ -426,7 +426,8 @@

                                if (udbs->udb_quota)
                                        maildrop.init_quota=udbs->udb_quota;
-                               maildrop.init_home=udbs->udb_dir;
+                                // maildrop.init_home=udbs->udb_dir;
+                                maildrop.init_home=getenv("HOME");
                                maildrop.init_logname=deliverymode;
                                maildrop.init_shell=udbs->udb_shell &&
                                                *udbs->udb_shell ?
@@ -535,7 +536,8 @@
                                if (getuid() != my_pw->pw_uid)
                                        nochangeuidgid(); // Security violation.

-                               maildrop.init_home=my_pw->pw_dir;
+                                // maildrop.init_home=my_pw->pw_dir;
+                                maildrop.init_home=getenv("HOME");
                                maildrop.init_logname=my_pw->pw_name;
                                maildrop.init_shell=
                                        my_pw->pw_shell && *my_pw->pw_shell
@@ -641,7 +643,8 @@
                {
                        if (udbs->udb_quota)
                                maildrop.init_quota=udbs->udb_quota;
-                       maildrop.init_home=udbs->udb_dir;
+                        maildrop.init_home=getenv("HOME");
+                        // maildrop.init_home=udbs->udb_dir;
                        maildrop.init_logname=udbs->udb_name;
                        maildrop.init_shell=udbs->udb_shell &&
                                        *udbs->udb_shell ?
@@ -665,7 +668,9 @@
                                throw "Cannot determine my username.";
                        }

-                       maildrop.init_home=my_pw->pw_dir;
+                        // maildrop.init_home=my_pw->pw_dir;
+                        maildrop.init_home=getenv("HOME");
+                        maildrop.init_logname=my_pw->pw_name;
                        maildrop.init_logname=my_pw->pw_name;
                        maildrop.init_shell=
                                my_pw->pw_shell && *my_pw->pw_shell
----------------------------------------------------------------------------
----------

I applied this Patch, but the Maildrop still don't work.

This is my configuration.

/var/qmail/rc:

exec env - PATH="/var/qmail/bin:/var/qmail/control:$PATH" \
qmail-start "|preline /usr/bin/maildrop"

/etc/maildroprc:

DEFAULT="./Maildir"
DEFAULT_DEF="/home/mailbox" (This is my Default Mail storage Diectory.)

Should I need to add "deliveryProgramPath" in the LDIF file.

And How to add the mailfilter? What is the location? i.e. /etc/maildroprc or
$USER/.mailfilter

How Can I determine the maildrop is working?

Can Anyone share some useful info to me?

Thanks in advance!



 -------------
Anthony Cheng
System Engineer
Tech-Trans System Limited
Tel: 24945000
Direct Line: 24945015
Fax: 24240849

Reply via email to