Hello

  I want to use procmail with qmail , for mail filtering. I am using
virtual users scenario with qmail-ldap.
I have created a file in users' home directory ( not /home/user )
.qmail :  | preline /usr/bin/procmail -t -m ./.procmailrc
.procmailrc :

##Begin Procfilter Configuration -- Please do not edit by hand, use
#SquirrelMail
HOME=/var/qmail/maildirs/users/sqahmad/
MAILDIR=$HOME/Maildir/ # Default mail directory
DEFAULT=/home/sqahmad/Maildir/

###TO_ '' qmail-ldap '' INBOX.Qmail-LDAP '' m
:0:
* ^TO_.*qmail-ldap
${MAILDIR}.Qmail-LDAP/

###From '' root '' INBOX.Operations.System '' m
:0:
* ^From.*root
${MAILDIR}.Operations.System/

###From '' billadmin '' INBOX.Operations.System '' m
:0:
* ^From.*billadmin
${MAILDIR}.Operations.System/

###TO_ '' operations '' INBOX.Operations '' m
:0:
* ^TO_.*operations
${MAILDIR}.Operations/

###TO_ '' [EMAIL PROTECTED] '' INBOX.Operations '' m
:0:
* ^TO_.*[EMAIL PROTECTED]
${MAILDIR}.Operations/

:0:
*
${MAILDIR}

##End Procfilter Configuration


    But every time procmail gives me the error.:
procmail[25463]: Error while writing  to "/dev/null"

 I don't understand why it is doing so. I have also tried with
| preline /usr/bin/procmail -p -m -
t /var/qmail/maildirs/users/sqahmad/.procmailrc

   Is there any problem with environment variables, or file permissions.?

 Also when i run procmail on command line, it delivers the message, but
seems that procmail was unable to read the body and full headers.
e.g.
cat 10303....  | /usr/bin/procmail -m -t ./.procmailrc

This command executes without any error. but the message delivered without
the body, and 'from' headers. giving 'read error' in the message body. :(

Please help someone.?

Regards,

-- 
Syed Qutubuddin Ahmad
Network Engineer
CubeXS Private Limited.



Reply via email to