On 2015-01-18 21:17, wie...@porcupine.org wrote:
m...@ruggedinbox.com:
>> 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}

I SAID SENDMAIL -G OPTION NOT PIPE "G" FLAG.

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

Of course it is. You did not execute "postfix reload".

        Wietse

Ok the new rule is:

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

did a postfix restart (of course) and sent a test email:



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 87D4731405CA
        for <m...@ruggedinbox.com>; Sun, 18 Jan 2015 22:25:41 +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 XVXTFibwS3gk for <m...@ruggedinbox.com>;
        Sun, 18 Jan 2015 22:25:39 +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:25:39 +0000
From: m...@ruggedinbox.com
To: m...@ruggedinbox.com
Subject: test2
Message-ID: <7e747ecd8d7c92e086e382307c80a...@ruggedinbox.com>
X-Sender: m...@ruggedinbox.com

test2



header still there :)

Reply via email to