On 2015-01-18 20:48, wie...@porcupine.org wrote:
m...@ruggedinbox.com:
>> spamassassin unix - n n - - pipe
>>   flags=R user=debian-spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail
>> -oi -f
>> ${sender} ${recipient}
>
> This is not final delivery, don't use "R" here.  And don't forget "--"
> before the recipient list.
...
About the spamassassin rule, you mean that the correct definition should
be

spamassassin unix - n n - - pipe
   user=debian-spamd
   argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} --
${recipient}

This is better, without "R" flags and with -- before the recipients.

The Postfix FILTER_README also recommends the sendmail -G option,
which prevents Postfix from appending your domain to broken email
addresses in email headers.

        Wietse

Hi ok applied the suggested changes:

spamassassin unix - n n - - pipe
flags=G user=debian-spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} -- ${recipient}

and tried to send a test email, 'Return-Path' is still there:


Return-Path: <vm...@ruggedinbox.com>
Delivered-To: m...@ruggedinbox.com
Received: from localhost (localhost.localdomain [127.0.0.1])
        by ruggedinbox.com (Postfix) with ESMTP id 9B31B31405C7
        for <m...@ruggedinbox.com>; Sun, 18 Jan 2015 22:08:23 +0100 (CET)
X-Spam-Flag: NO
X-Spam-Score: -0.002
X-Spam-Level:
X-Spam-Status: No, score=-0.002 required=5 tests=[NO_RECEIVED=-0.001,
        NO_RELAYS=-0.001] autolearn=no
Received: from ruggedinbox.com ([127.0.0.1])
        by localhost (ruggedinbox.com [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id 4aYR2P5tCjvr for <m...@ruggedinbox.com>;
        Sun, 18 Jan 2015 22:08:21 +0100 (CET)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Sun, 18 Jan 2015 21:08:18 +0000
From: m...@ruggedinbox.com
To: m...@ruggedinbox.com
Subject: test1
Message-ID: <78f9184e7cbad3872c7b3523d8189...@ruggedinbox.com>
X-Sender: m...@ruggedinbox.com

test1



Thank you.

Reply via email to