Problem: Using
:
:
dnl # opendkim
include(`/etc/mail/m4/opendkim.m4')dnl
dnl # ClamAV milter
include(`/etc/mail/m4/clamav-milter.m4')dnl
dnl # Masquerading options
MASQUERADE_AS(`example.com')dnl
MASQUERADE_DOMAIN(`example.com')dnl
MASQUERADE_DOMAIN(`example.de')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`masquerade_entire_domain')dnl
:
:
in sendmail.mc opendkim adds a signature to the header, and next sendmail changes the header for masquerading, making the dkim signature invalid. Not reasonable.
How can I tell sendmail to apply all the "masquerade" options and features before adding a signature via opendkim?