Am Freitag, 29. Februar 2008 01:49:42 schrieb Sam Varshavchik:
> [EMAIL PROTECTED] writes:
> > Am Mittwoch, 27. Februar 2008 20:05:38 schrieb Bernd Wurst:
> >> Hi.
> >>
> >> On Wednesday 27 February 2008, [EMAIL PROTECTED] wrote:
> >> > The mail was sended from devloop.de to sf.net back to devloop.de. But
> >> > I think the problem also only occurs if the last hop is a courier mta.
> >> > If courier sends such a mail to another mail server the problem
> >> > resolves itselfs because the double dot will be unescaped to a single
> >> > dot by the other mta.
> >>
> >> Your message was sent from sourceforge ('till there, we're all equal) to
> >> my courier server without an intermediate hop.
> >>
> >> I cannot see your error.
> >
> > You can find telnet.txt and mail.txt as gzip attached.
> >
> > telnet.txt  is the communication with courier
> > mail.txt    is the raw mail which courier saves to hard disk. notice the
> >             double dot in this file
>
> Also notice the duplicate Received: header, which would not be there if
> this was an ordinary mail delivery, so you must have some custom mail
> delivery setup, whose details you have not disclosed. Also notice the
> "DSPAM" headers, which indicates that you have other software running that
> handles your mail.
>
> That's where you need to look for your problem.

Ok, thanks. You are completely right.

I set DEFAULTDELIVERY to:
-------------------------8<--------------------------
devloop courier # egrep '^DEFAULTDELIVERY' courierd
DEFAULTDELIVERY="| /usr/bin/maildrop"
-------------------------8<--------------------------

And my maildroprc looks like this:
-------------------------8<--------------------------
devloop courier # cat maildroprc
import RECIPIENT

/^Subject:\s*(.*)/
SUBJECT=$MATCH1

SPAM=0

xfilter "/usr/bin/dspam --client --stdout --deliver=spam,innocent --user 
$RECIPIENT"
if (/X-Dspam-Result: Spam/)
{
        SPAM=1
}
if (/X-Dspam-Result: Virus/)
{
        # xfilter "/usr/bin/reformail -I'Subject: [VIRUS] $SUBJECT'"
        SPAM=1
}


if ( $SPAM )
{
        SPAM_FOLDER=$DEFAULT/.spam
        `test -d $SPAM_FOLDER`
        if ($RETURNCODE != 0 )
        {
                `/usr/bin/maildirmake $SPAM_FOLDER`
                # auto subscribe. the following works for courier-imap
                `echo INBOX.spam >> $DEFAULT/courierimapsubscribed`
        }
        to "$SPAM_FOLDER"
}
-------------------------8<--------------------------


What do you think? Is dspam the problem or is it the way I use maildrop/dspam?

regards and thanks again
Daniel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to