postfix+mysql and maildrop filter problem

Discussion in 'Installation/Configuration' started by osanet, Jun 1, 2006.

  1. osanet

    osanet New Member

    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
     
  2. falko

    falko Super Moderator

    Does the Maildir have the right permissions and owner?
     

Share This Page