-----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!
>
> Bernd
>
>
> On Sat, 01 Dec 2007 12:06:32 -0800
> [EMAIL PROTECTED] wrote:
>
>> 差出人: Holger Librenz <[EMAIL PROTECTED]>
>> 宛先:: [email protected]
>> 件名: [courier-users] maildrop in delivery mode does not filter (debian)
>> 日付: Sat, 01 Dec 2007 20:36:45 +0100
>> Reply-To: [email protected]
>>
>> 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-----
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users