2 messages in net.sourceforge.lists.courier-maildrop[maildropl] MailDrop in Qmail-ldap pr...
FromSent OnAttachments
AnthonyAug 21, 2002 1:34 am 
AnthonyAug 21, 2002 8:40 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:[maildropl] MailDrop in Qmail-ldap problemActions...
From:Anthony (wa@tech-trans.com)
Date:Aug 21, 2002 1:34:42 am
List:net.sourceforge.lists.courier-maildrop

Hi

I had a Qmail+ldap Server and now planned to install MailDrop for Mail filtering.

I found that if I run Maildrop for individual User ($HOME/.maildfilter), its work. But if I run in Global Mode (/etc/maildroprc), it didn't work.

For Example, individual User (WORK!!)

LDIF file

-------------- dn: uid=Sam, ou=TT Company, o=TT cn: Sam sn: Tsui objectClass: top objectClass: person objectClass: inetOrgPerson objectClass: qmailUser mail: sa@tt.com mailHost: qmail.tt.com mailMessageStore: /home/mailbox/sam/ homeDirectory: /home/mailbox/sam/ uid: sam deliveryMode: normal accountStatus: active deliveryMode: normal deliveryProgramPath: /usr/bin/maildrop /home/mailbox/sam/.mailfilter

ldapdefaultdotmode => both

/home/mailbox/sam/.mailfilter:

if (/^From:.*@hotmail\.com/) { echo "Screw off" EXITCODE=77 exit }

However Global User (NOT WORK!!!)

--------------------------- /var/qmail/rc:

#!/bin/sh # Using stdout for logging # Using control/defaultdelivery from qmail-local to deliver messages by default

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

------------------------------

------------------------------ /etc/maildroprc:

if (/^From:.*@hotmail\.com/) { echo "Screw off" EXITCODE=77 exit }

--------------------------------

I have some questions?

1. What is the permission and ownership of /etc/maildroprc. 2. As I know, I need to apply a patch for maildrop in order to make it work with Qmail-Ldap. Is it Right? (I had already applied the patch.) 3. Any errors in the above setting. Since I need to do some filtering for Global User, So I need to make this work. Thanks! 4. How can I determine the maildrop is functioning? How to enable logging?

Thanks in advance!