Hi,
i've installed a new vmail server but can't get maildrop working.
Here are my settings:
>From postfix:
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/bin/maildrop -w 90 -d
[EMAIL PROTECTED] ${extension} ${recipient} ${user} ${nexthop}

and my maildroprc:
SHELL=/bin/bash

LOGNAME=tolower("$LOGNAME")             # complete login name (ex:
[EMAIL PROTECTED])
RECIPIENT=$LOGNAME
#DOMAIN=$4
#USER=$3

DOMAIN=$nexthop
USER=$LOGNAME

#RECIPIENT=tolower("$1")
#DEFAULT="/home/vmail/$RECIPIENT/."
RACINEMAIL="/home/vmail/$DOMAIN/$USER/"
DEFAULT="/home/vmail/$DOMAIN/$USER/.A-Inbox"

# Our verbosity in the log file
VERBOSE="5"
#maildir quata example, see also the quota from mysql deb:mail
#MAILDIRQUOTA=100000S

## come from /etc/postfix/master.cf:
#flags=Ru user=vmail argv=/usr/bin/maildrop -w 90 -d
[EMAIL PROTECTED]   ${extension} ${recipient}   ${user}
${nexthop}       ${sender}
#
[EMAIL PROTECTED]               idem usermail    m-m
laplaceverte.fr  email of sender   
# -w 90 is telling maildrop to send a quota warning to users with
90% of quota used up
# -d  is telling maildrop to run as user as specified by user=x:x
# ${user} is comprised of everything before the @ symbol in the
recipient's email address.
# ${nexthop} is the domain; everything after the @ symbol in the
recipient's email address.
# ${recipient} is nothing more than [EMAIL PROTECTED]
# ${sender} is complete email address of the sender


logfile "/home/vmail/maildrop.log"
#logfile "/var/log/maildrop.log"

# Markers for the log file
#

log "==============================================================
Linux-bugtraq "
log "RACINE:$RACINEMAIL"
log "DEFAULT=$DEFAULT"
log "home=$HOME"
log " 1=$1  2=$2   3=$3    4=$4    5=$5    6=$6 "
log "-------------------------------------------------------------- "

#if ( "$EXTENSION" ne "" )
#{
#  DELIMITER="+"
#}

#if (!$SENDER)
#{
#  SENDER = "<>"
#}

#
# Autocreate maildir, if not existant
#

test -e /home/vmail/$DOMAIN
if ( $RETURNCODE != 0 )
{
  maildirmake /home/vmail/$DOMAIN
  chmod -R 0700
/home/vmail/$DOMAIN
}

test -e /home/vmail/$DOMAIN/$USER
if ( $RETURNCODE != 0 )
{
  maildirmake /home/vmail/$DOMAIN/$USER
  chmod -R 0700
/home/vmail/$DOMAIN/$USER
}

# Check that user has his own maildrop include,
# if not available, check if $DEFAULT is set
# (newer maildrop get's that from the DB and updates
# it) and deliver or fail temporarily if not available
#

test -f /home/vmail/.mailfilters/$LOGNAME
if ( $RETURNCODE == 0 )
{
  include "/home/vmail/.mailfilters/$LOGNAME"
  }
  else
  {
    if ( "$DEFAULT" ne "" )
      {
          #if ( /^Subject: SPAM/)
              #if ( /^X-Spam-Level: *-----.*$/ )
                  if ( /^X-Spam-Level: \*\*\*\*/ )
                      {
                            test -e $RACINEMAIL.spam
      if (
$RETURNCODE != 0 )
      {
       log "creating $RACINEMAIL.spam "
               maildirmake $RACINEMAIL.spam
        chmod -R 0700
$RACINEMAIL.spam
            exception {
            echo "$RACINEMAIL.spam" >>
$RACINEMAIL/courierimapsubscribed
        } 
      }
log "------------------------------------------------------------- Spam
general. " to "$RACINEMAIL.spam" # Make this "cc" for copy or "to" to not
send it to Inbox.
    }
      }
      #  else
      #  {
      #   EXITCODE=75
      #    exit
      #  }
      }
      ######## added for spam detection on all messages
      if ( $SIZE < 26144 )
      {
           exception {
                   xfilter "/usr/bin/spamc"
                        }
                        }
                        
                        if (/^X-Spam-Flag: *YES/)
                        {
                             exception {
                                      to "$RACINEMAIL.spam/"
                                           }
                                           }
                                           
                                           
                                           ########## folders in
mailbox ##################

if (/^To:[EMAIL PROTECTED]/)
{
to $RACINEMAIL.Debian/
log "put in $RACINEMAIL.Debian/"
exit
}

if (/^To:[EMAIL PROTECTED]/)
{
to ${RACINEMAIL}.Postfix/
log "put in $RACINEMAIL.Postfix/"
exit
}

if (/(From|Cc|To|Sender)[EMAIL PROTECTED]/)
{
to ${RACINEMAIL}.Maia/
log "put in $RACINEMAIL.Maia/"
exit
}

if (/^To:.*mutt/ || /^[Cc][Cc]:.*mutt/ \
   || /^Mail-Followup-To:.*mutt/ || /^Subject:.*mutt/)
   {
   to ${RACINEMAIL}.Mutt/
   log "put in $RACINEMAIL.Mutt/"
   exit
   }
   
   if (/(From|Cc|To|Sender)[EMAIL PROTECTED]/)
   {
   to ${RACINEMAIL}.Courier/
   log "put in $RACINEMAIL.Courier/"
   exit
   }

The messages are stored in my /hom/vmail/domain/user/INBOX
not in the desired folders.
And there is no output to the log file.

What can go wrong ?

best regards
mess-mate                               
-- 

He that is giddy thinks the world turns round.
                -- William Shakespeare, "The Taming of the Shrew"


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to