3 messages in net.sourceforge.lists.courier-usersRe: [courier-users] maildrop in deliv...
FromSent OnAttachments
Holger LibrenzDec 1, 2007 11:36 am 
Bernd PlaggeDec 1, 2007 6:38 pm 
Holger LibrenzDec 2, 2007 5:03 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:Re: [courier-users] maildrop in delivery mode does not filter (debian)Actions...
From:Bernd Plagge (bpla@choicenet.ne.jp)
Date:Dec 1, 2007 6:38:38 pm
List:net.sourceforge.lists.courier-users

Holger,

here is what I have:

courierd:DEFAULTDELIVERY="| /usr/bin/maildrop" maildrop:/usr/bin/maildrop

/etc/courier/maildroprc looks like:

#Maildropfile configuration # fc 2007-11-15 # if you enable the 'logfile' option and the various 'log' lines # a maildrop.log file will be created in the mail users $HOME directory! #logfile ./maildrop.log #log "home directory is" #log $HOME

# add spam headers #xfilter spamc --config=/etc/spamassassin # if you remove the backticks (`) no $RETURNCODE will be set! `test -e $HOME/mailfilter` #log "mailfilter test returns $RETURNCODE" if ($RETURNCODE eq 0) { # log "mailfilter found" include $HOME/mailfilter exit } to $HOME exit

--

note: - I put mail directly into the users home directory i.e. no Maildir directory - I have a maildirfilterconfig file in every users mail directory with the following content:

#bp 2007-11-27 - for courier mail MAILDIR=$HOME MAILDIRFILTER=mailfilter

-- If you put the log file somewhere else you need to make sure that it can be generated by the standard courier user you're using (I'm using courier.courier).

I'm running the 0.57.0-1 version: ii courier-mta 0.57.0-1 Courier Mail Server - ESMTP daemon ii courier-mta-ssl 0.57.0-1 Courier Mail Server - ESMTP over SSL

Hope this helps!

Bernd

On Sat, 01 Dec 2007 12:06:32 -0800 cour@lists.sourceforge.net wrote:

差出人: Holger Librenz <lis@librenz.com> 宛先:: cour@lists.sourceforge.net 件名: [courier-users] maildrop in delivery mode does not filter (debian) 日付: Sat, 01 Dec 2007 20:36:45 +0100 Reply-To: cour@lists.sourceforge.net

Hi.

Since about 3 days i try to get maildrop filtering mails. My config consits of postfix, courier, sasl and ldap on a Debian 4.0 and maildrop is used as mda. My problem: maildroprc nor $HOME/.mailfilter is recognized on delivery. Here are my maildrop-related configs:

`postconf | grep maildrop`: mailbox_command = /usr/bin/maildrop virtual_transport = maildrop

master.cf: maildrop unix - n n - - pipe flags=ODRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} ${user}

maildroprc: # our shell SHELL="/bin/bash"

# the default path DEFAULT="$HOME/Maildir"

# log file logfile "/var/log/maildrop"

VERBOSE="5"

# This get's added above each entry in the log file. # It's just a visual aid. log "---------------------------"

`echo "maildroprc called." > /tmp/maildrop.log`

# include user rules - if available USERFILTER="/etc/courier/userfilters/$1"

if (`test -d "$USERFILTER"`) { `echo "Userfile $USERFILTER exists and will be included" >> /tmp/maildrop.log`

include "$USERFILTER" } else { `echo "Userfile "USERFILTER doesn't exists!" >> /tmp/maildrop.log"` }

Could anybody help me?

Greets Holger