1 message in net.sourceforge.lists.courier-maildrop[maildropl] can't get maildrop workin...
FromSent OnAttachments
mess-mateJun 27, 2007 12:50 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] can't get maildrop working/starting ?Actions...
From:mess-mate (mess@wanadoo.fr)
Date:Jun 27, 2007 12:50:57 am
List:net.sourceforge.lists.courier-maildrop

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 ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop}

and my maildroprc: SHELL=/bin/bash

LOGNAME=tolower("$LOGNAME") 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 ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop} ${sender} # mm@laplaceverte.fr 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 ${user}@${nexthop} # ${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:.*@lists.debian.org/) { to $RACINEMAIL.Debian/ log "put in $RACINEMAIL.Debian/" exit }

if (/^To:.*@postfix.org/) { to ${RACINEMAIL}.Postfix/ log "put in $RACINEMAIL.Postfix/" exit }

if (/(From|Cc|To|Sender).*@renaissoft.com/) { 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).cour@lists.sourceforge.net/) { 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's wrong with it ?

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