HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   postfix+mysql and maildrop filter problem (http://www.howtoforge.com/forums/showthread.php?t=4647)

osanet 1st June 2006 22:09

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

falko 2nd June 2006 11:50

Does the Maildir have the right permissions and owner?


All times are GMT +2. The time now is 14:02.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.