On Fri, Nov 22, 2002 at 02:52:17PM +0800, Ken Lee wrote: > Hi all, > > Question: How to invoke ldap:deliveryProgramPath attribute with parameters? > > I have qmail patched with ldap function. And compiled maildrop with ldap support. > > I want to use maildrop to filter emails with duplicate Message ID. I could do it >with command line: > #cat message | maildrop -d [EMAIL PROTECTED] > And /etc/maildroprc is > `reformail -D 8000 duplicate.cache` > if ( $RETURNCODE == 0 ) > exit > to $HOME/Maildir/ > > Then maildrop will lookup the mailMessageStore attribute and put the message in the >proper location. Message ID is stored at the user's duplicate.cache file. Filtering >function is good. > > However, I would the mail to invoke maildrop and do the delivery as above. I made >the following ldap entry. > However the resulting maildrop will ignore the trailing -d [EMAIL PROTECTED] and run >maildrop as user 104 (qmaill), and attempt to deliver to qmaill, which is wrong. > > How can I invoke maildrop and give parameter just like the command line? thanks. > > > cn=user,ou=mail,.... > deliverymode=normal > deliveryprogrampath="/usr/local/bin/maildrop -d [EMAIL PROTECTED]"
a) don't forget to set qmailDotMode=ldapwithprog b) don't use the '"' in deliveryprogrampath: deliveryprogrampath=/usr/local/bin/maildrop -d [EMAIL PROTECTED] c) have a look at QLDAPINSTALL section 5.2 (in your case it shouldn't be a problem) After that it should work. As example I have a test entry like this: qmailDotMode: ldapwithprog deliveryProgramPath: condredirect otheruser true And this does work. -- :wq Claudio
