Am 19.11.2020 um 15:44 schrieb Bill Cole:
On 19 Nov 2020, at 5:44, [email protected] wrote:
Hi, Is there a possibility to provide outgoing mails with a DKIM
signature only for a certain login - sender domain combination? The
background to this is: With the sender_maps it is possible to allow
different senders for a login. The mail may only be signed for those
where the login and sender domain match. Thanks, André
Because Postfix does not implement DKIM signing itself, the answer is
dependent on what software you use for DKIM signing. If your signing
is done in a milter, Postfix cannot select which mail is signed and
which is not. That must be done in the milter itself. For example, I
work with systems that use the MIMEDefang milter for signing (using
the Perl Mail::DKIM module) where the decision of whether and how to
sign mail is made based on the sender.
As a milter I use OpenDKIM. The user is not transferred to the milter
itself, so I have no way of deciding what should be signed there. Only
Postfix knows the user, so a decision would have to be made already
there what is passed on to the milter and what is not.