postfix-users March 2011 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Message is modified after after-queue filter

Re: Message is modified after after-queue filter

From: mouss <mouss_at_nospam>
Date: Sat Mar 12 2011 - 10:40:57 GMT
To: postfix-users@postfix.org

Le 11/03/2011 12:50, Ulrich Mierendorff a écrit :
> On 09.03.2011 21:38, Murray S. Kucherawy wrote:
>>> -----Original Message-----
>>> From: owner-postfix-users@postfix.org
>>> [mailto:owner-postfix-users@postfix.org] On Behalf Of Victor Duchovni
>>> Sent: Tuesday, March 08, 2011 2:02 PM
>>> To: postfix-users@postfix.org
>>> Subject: Re: Message is modified after after-queue filter
>>>
>>>> My current work-around is to correctly format my emails in my software
>>>> before they are sent to postfix so that the messages are not
>>>> modified at
>>>> all. But that is not the best solution.
>>> Actually that *is* the best solution. Send 7-bit encoded mail with
>>> correct line endings.
>> Furthermore, even if postfix could be coerced into not doing the
>> rewrites you're describing, something else down the chain likely will,
>> invalidating your signatures anyway.
> It okay for me, that postfix does these modifications, but I would like
> if it happens BEFORE the message is passed to the filter, because the
> filter sees the original email and postfix currently modifies it after
> filtering.
>

As Viktor said, you need to disable 8bitmime somewhere. for example:

dksign unix - - n - 10 smtp
    -o smtp_send_xforward_command=yes
    -o smtp_discard_ehlo_keywords=8bitmime,silent-discard

http://www.postfix.org/postconf.5.html#smtp_discard_ehlo_keywords
http://www.postfix.org/postconf.5.html#smtpd_discard_ehlo_keywords