View Single Post
  #1  
Old 1st June 2006, 23:09
osanet osanet is offline
Junior Member
 
Join Date: May 2006
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default postfix+mysql and maildrop filter problem

Hi

I have a postfix with mysql and now I have add maildrop , where single user have a own mailfilters.

To test I create a global maildroprc, it's have :

logfile "/var/spool/postfix/maildrop/maildrop.log"
VERBOSE="9"
DOMAIN=$1
USER=$2
DEFAULT="/usr/local/virtual/$DOMAIN/$USER/"
#VHOME="$HOME/$1/$2"
MAILDIR="$DEFAULT"

if ( $SIZE < 26144 )
{
exception {
xfilter "/usr/local/bin/spamassassin"
}
}

if (/.*X-Spam-Flag\: Yes/:h)
{
exception {
to "$MAILDIR/.Spam/"
}
}
else
{
exception {
to "$MAILDIR/"
}
}

and when I have run a maildrop with user maildrop , I get error

maildrop -V 4 -d test@cablenet.one.pl < /var/spool/postfix/maildrop/test
maildrop: authlib: groupid=126
maildrop: authlib: userid=126
maildrop: authlib: logname=test@cablenet.one.pl, home=/usr/local/virtual, mail=cablenet.one.pl/test/
maildrop: Changing to /usr/local/virtual
Message start at 0 bytes, envelope sender=test@cablenet.one.pl
/usr/local/etc/maildroprc(1): Opening logfile /var/spool/postfix/maildrop/maildrop.log
/usr/local/etc/maildroprc(2): VERBOSE="9"
maildrop: Unable to open mailbox.

Why unable to open mailbox? I have a Maildir format

-osanet
Reply With Quote
Sponsored Links