On Tue, 7 Dec 2004, Harindra Patel wrote:

> My user atrribute is like this..
>
> dn: uid=hari, ou=test.net, o=tree1.com
> mailSizeMax: 15000000
> givenName: Hari
> accountStatus: active
> objectClass: top
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetOrgPerson
> objectClass: mailrecipient
> objectClass: nsmessagingserveruser
> objectClass: qmailuser
> objectClass: hordeperson
> mailQuotaSize: 1205004857
> userPassword:: e2NyeXB0fTNNM2xZTkZpRTBBZ2M=
> mailMessageStore: /var/qmail/mailstore/hari
> uid: hari
> mail: [EMAIL PROTECTED]
> cn: Hari Patel
> qmailDotMode: ldapwithprog
> mailHost: suqmail.iqara.net
> sn: Patel
> deliveryProgramPath: /usr/bin/procmail
>
> I have created my /var/qmail/mailstore/hari/.procmailrc file as follows.
>
> # Please check if all the paths in PATH are reachable, remove the ones that
> # are not.
>
> # PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
> MAILDIR=$HOME/Maildir   # You'd better make sure it exists
> # DEFAULT=$MAILDIR/Maildir/new
> LOGFILE=/$HOME.procmaillog
> LOCKFILE=/$HOME/.lockmail
>
> # Remove any duplicate emails (mailing list Cc:'s and stuff)
> :0 Wh : $MAILDIR/.idcache.lock
> | formail -D 1000 $MAILDIR/.idcache
>
> One more confusion is that whether i need  to create this file as
> /etc/procmailrc or as $HOME/.procmailrc???


Add "deliveryMode: nolocal" to you LDAP users' profiles to avoid duplicate
deliveries. When you use procmail like this, procmail delivers a message
*and* qmail-local also delivers the message, resulting in duplicates.

You should consider using maildrop instead of procmail -- it has native
LDAP support, and quota support, and also seems to deal with Maildirs
better.

Andreas

Reply via email to