OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
About Postfix + Maildrop & .mailfilter problems .

From: Data Leung (data_leunghotmail.com)
Date: Thu Aug 02 2007 - 08:24:46 CDT


Dear List,
      Sorry about that it might to be off topic but I really need for your
help .

      Here is my testing enviorment .
       postfix-2.2.10-1.1.el4 " run as virtual domain style & i had been
create a user / group name as vmail "
      Maildrop-2.0.4
      Courier-imap 4.1.3
      openldap-2.2.13-7.4E
      Phamm

I complie maildrop like this.
======================================
tar jxfv maildrop-2.0.4.tar.bz2
cd maildrop-2.0.4
/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=502 --enable-maildrop-gid=502
--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
vi /usr/local/maildrop/etc/maildropldap.cf
vi /home/vmail/domains/.mailfilter
chown vmail:vmail /home/vmail/domains/.mailfilter
chmod 600 /home/vmail/domains/.mailfilter
vi /etc/postfix/master.cf
" insert this "
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop /home/vmail/domains/.mailfilter
-w 80 -d ${recipient}

ll /usr/bin/maildrop
-rwsr-xr-x 1 root vmail 842586 Aug 2 16:09 /usr/bin/maildrop
ll /usr/bin/maildirmake
-rwxr-xr-x 1 root root 81395 Aug 2 16:10 /usr/bin/maildirmake

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

Here is my problems :
Then I try to send e-mail by using telnet localhost SMTP.
And i found that maildrop didn't read .mailfilter rules set. " Since I
didn't found my own mailbox didn't have any IMAP subfolder appear. At the
same time there didn't get any log appear in /home/vmail/ ( my mailfilter
had been specifiec a maildir.log in /home/vmail )

For /etc/postfix/master.cf . I add this line. I am not sure is there
anythings i did somethings wrong that's call postfix --> maildrop ---> can't
call .mailfilter
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop /home/vmail/domains/.mailfilter
-w 80 -d ${recipient}

IF I running like this :
cat /etc/redhat-release | sudo -u vmail maildrop -V -d datatest.com
It's work and it shows that it could run /home/vmail/.mailfilter
If sounde like to be work IF maildrop running on CMD mode.

Is there any anyone know what's the problems is it ?
Anyway I could debug where i get the problems ?

If you need me to provide more information such as config files / log . I
would like to provide ASAP .
Hope somebody else could help .

PS. For this problems I ask help from Maildrop mailling list .So far they
believe that's postfix issues since CMD told us that's work.

Thanks .

From Data Leung

_________________________________________________________________
Get 10Mb extra storage for MSN Hotmail. Subscribe Now!
http://join.msn.com/?pgmarket=en-hk