Hi, I use procmail and on deliveryPgrogramPath have something like this:
/usr/local/bin/procmail -p [EMAIL PROTECTED] /usr/local/etc/
procmailrc
maybe you just have to add to all your users the [EMAIL PROTECTED]
by the way are you using spam rules per users? if you do how are you
doing it.
regards.
On Feb 17, 2006, at 11:32 AM, Eduardo Martinho wrote:
Andreas,
I tried with $LOGNAME and appeared VMAIL instead of email recipient
(To). I need of recipient to execute spamc with "-u" parameter.
Andreas Stollar wrote:
Try $LOGNAME
On Fri, 17 Feb 2006, Eduardo Martinho wrote:
Date: Fri, 17 Feb 2006 13:30:25 -0300
From: Eduardo Martinho <[EMAIL PROTECTED]>
To: qmail-ldap@qmail-ldap.org
Subject: deliveryProgramPath and Maildrop
Hi,
I have a problem. I'm trying to use attribute deliveryProgramPath
"/usr/bin/maildrop", but inside of file /etc/maildroprc the
variable $USER is empty.
Any idea ?
Thanks,
Eduardo Martinho
sample of /etc/maildroprc:
####################################################################
###########
#
# Use SpamAssassin to filter SPAM
#
####################################################################
###########
if( $SIZE < $SCANSPAMSIZE ) {
xfilter "/usr/bin/spamc -u $USER -s $SCANSPAMSIZE"
}
if (/^X-Spam-Status: *Yes/:h)
{
#Create SPAM IMAP folder if they don't have one
`test -d $DEFAULT/.Spam`
if( $RETURNCODE == 1 )
{
`/usr/bin/maildirmake -f Spam $DEFAULT`
`echo INBOX.Spam >> $DEFAULT/courierimapsubscribed`
}
exception {
to "$DEFAULT/.Spam/"
}
}
--