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:Holger Librenz (lis@librenz.com)
Date:Dec 2, 2007 5:03:16 am
List:net.sourceforge.lists.courier-users

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Hi Bernd.

Thanks for the quick answer. I found last night the solution. The problems were small but beasty - postfix used virtual not maildrop as MDA, the path in LDAP property for mail storage was wrong and my maildroprc wanted a cleanup. So everything is fine now!

So long. Holger

Bernd Plagge schrieb:

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!

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

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHUq0rEKb1UsmnKEoRAlMWAJ0TFAa/Bs9StYWsHXtpCr7Hn8oq2ACeL3Nx VdFSm/T/ziCkSnE/ZnCqvho= =G5wj -----END PGP SIGNATURE-----