2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Maildrop & .mailfilter ( ...
FromSent OnAttachments
Data LeungAug 6, 2007 7:10 am 
Tony EarnshawAug 6, 2007 7:58 am 
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 & .mailfilter ( How to debug my case ? } [ Help ]Actions...
From:Data Leung (data@hotmail.com)
Date:Aug 6, 2007 7:10:12 am
List:net.sourceforge.lists.courier-maildrop

Dear List , Niice to talk with you here . And i got few a problem which's about Phamm + Maildrop & .mailfilter problem. Hope you could help.

Here is my testing enviorment : CentOS 4.5 32bit kernel ( 2.6.9-55.0.2.ELsmp ) openldap-2.2.13-7.4E Phamm-0.4.13 maildrop-2.0.4. postfix-2.2.10-1.1.el4 courier-imap-4.1.3

Most likely most of the feature working fine. I could do the following operation : 1.Create / Delete / Account by Phamm 2.Send out and get receive e-mail by Postfix & Courier-imap .

But I got one problem can't be fix out . Hope somebody else could help.

~~PROBLEMS~~ I found that my postfix ( MTA ) could call maildrop deliver e-mail to /home/vmail/domains/data.leung. But the maildrop that I complied didn't aware that there have a /home/vmail/domains/.mailfilter . so that for 1st mail that Phamm send out. Users mailbox won't be create the subfolder that I need such as .Junk / .Sent

~ ~ But I found that ~ ~ if I run this command in ssh " cat /etc/redhat-release | sudo -u vmail -d data@test.com " then maildrop could aware /home/vmail/domains/.mailfilter . Then it could create those subfolder I want by itself normally

~~~ Question ~~~~ 1. What's --enable-syslog=1 using for ? Is that I could do some config on /etc/syslogd.conf , generate some log without maildroprc / .mailfilter ? Since In this moment I didn't get any log on my hand That's difficult for me to debug my problems. 2. for /usr/bin/maildrop . Suppose that I must using chmod u+s instead of chown vmail:vmail / chmod 600 only ?

Is there anyone could get me some hints ?

For details information , had been paste below. If you need more details information to solve this problems , let me know & I will post it out ASAP. Many thanks all of your great help and looking forward your reply.

================ Postfix Master.cf I added these two line ================== maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}

phamm unix - n n - - pipe flags=FRh user=vmail argv=/home/vmail/bin/fork.pl -m ${recipient}

============================================================

============ i complie maildrop by the following step ======================= ./configure --prefix=/usr/local/maildrop --enable-sendmail=/usr/sbin/sendmail --enable-trusted-users=root,vmail,postfix,daemond --enable-syslog=1 --enable-maildirquota --enable-maildrop-uid=1000 --enable-maildrop-gid=1000 --with-dirsync--enable-maildirquota ; make ; make install

cp /usr/local/maildrop/bin/maildrop /usr/bin cp /usr/local/maildrop/bin/maildirmake /usr/bin chown root:vmail /usr/bin/maildrop chmod u+s /usr/bin/maildrop

================================================

================= .mailfilter permission & ownershit ========== -rw------- 1 vmail vmail 3852 Aug 6 16:07 /home/vmail/domains/.mailfilter ================================================

====== vi /usr/local/maildrop/etc/maildropldap.cf ================= hostname localhost basedn o=hosting,dc=test,dc=com filter (& (& (objectclass=VirtualMailAccount) (mail=%s))(accountActive=TRUE) (delete=FALSE)) binddn cn=phamm,o=hosting,dc=test,dc=com bindpw XXXXXX timeout 5 search_method mail default_uidnumber 1000 default_gidnumber 1000 mail_attr mail maildir_attr mailbox homedirectory_attr vdHome quota_attr quota ===================================================

Thanks all