[exim] Re: disclaimer + DKIM does not work (reopened)

Góra strony
Delete this message
Reply to this message
Autor: Jasen Betts
Data:  
Dla: exim-users
Temat: [exim] Re: disclaimer + DKIM does not work (reopened)
On 2024-11-13, brunoc68 via Exim-users <exim-users@???> wrote:
> Dear all,
>
> I found out why DKIM signature did not work in my case.
>
> It comes from a bug in altermime as described here :
>
>   * https://www.ijs.si/software/amavisd/release-notes.txt
>     <https://www.ijs.si/software/amavisd/release-notes.txt>
>   * https://mailing.unix.amavis-user.narkive.com/3anI8l14/amavis-user-dkim-and-internal-header-stripping
>     <https://mailing.unix.amavis-user.narkive.com/3anI8l14/amavis-user-dkim-and-internal-header-stripping>


> Basically, one has to correct for this bug at the transport_filter
> point. As it took me hours to get it done, I give it to you :-)
>
> transport_filter = /bin/sh -c "/usr/bin/altermime --input=- --disclaimer=/etc/exim4/textdisclaimer --disclaimer-html=/etc/exim4/htmldisclaimer | perl -pe 's/\r//g; s/\n/\r\n/g'"


That works? according to the documentation:

https://www.exim.org/exim-html-current/doc/html/spec_html/ch-generic_options_for_transports.html

The lines of the message that are written to the transport filter are
terminated by newline (“\n”). The message is passed to the filter
before any SMTP-specific processing, such as turning “\n” into
“\r\n” and escaping lines beginning with a dot, and also before any
processing implied by the settings of check_string and escape_string
in the appendfile or pipe transports.

So, you seem to be emitting wrong line-endings from the filter.

--
Jasen.
🇺🇦 Слава Україні

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/