“Is your ISP sending mail on your behalf and you want to generate a key pair for the ISP to use so the mail they send includes a DKIM signature?”
All mail coming into our facility from an outside SMTP relay and additionally mail generated locally is sent out directly to the recipient via our local SMTP or smart host.
NOTE: Our ISP hosts our DNS record, so DKIM information must be update at their location. All mail inbound is stored at our ISP and the local Multipop application reads each mailbox and distributes to internal users.
“... In this case I would setup a content filter rule and force MDaemon to sign the messages.”
We’re in discussions with our vendor to see if authentication can be built, however under the assumption authentication cannot be done, then we must configure signing using Content Filter.
Currently we now understand dkim is working correctly because it signs email going out from within our local domain (see below) when it is sent directly to the recipient via SMTP
Performing DKIM signing (thread-ID: 39812)
* File: j:\mdaemon\queues\local\md3501000117385.msg
* Work file: C:\MDaemon\CFilter\WORK\1657826696\pd2593028654.tmp
* Message-ID: <MDAEMON-* Message-ID: MDAEMON-F202304201206.AA0621738md5001000106909@mail.*****.local
* Selector: MDaemon
* Domain (d=): *******.com
* Result: 0 (signed ok)
Previously we detailed examples when DKIM fails (see below).
DKIM Logfile shows the following: Result: -23 (could not sign)"
So, we’ve tried to sign emails coming in from an outside site that is trusted (as you’ve suggested) using content filtering which appears to work (see below content filtering snippet)
* Message matched rule: 6 "Check and Sign #3 - dkim" (Hits: 4774)
* Condition: X-Authenticated-Sender header exists
* Action: Flagged for DKIM signing
However, reviewing the DKIM log file, it doesn’t show a successful sign request, it doesn’t show an error, as a matter of fact, the DKIM file shows NO entry at all when processing mail from a trusted external site.
So, understanding this we still need detail how to do the following:
Manually build a DKIM key pair for our external ***.com domain name, as well as other external domains that are trusted? Because, as you know, the automated process “Create new public and private keys” only work on our *.local and not our *.com which is necessary to provide to our IPS that published our DNS record.
Taken from the dns_readme.txt file
“The above example uses your primary domain of "*****.local".
You will want to set up similar records using different domain and key values if
you wish to sign mail for other domains.”
We can only assume DKIM key pairs are necessary for each external trust sites for content filtering to work correctly.