DKIM Certificate Generation
DKIM is an email authentication method designed to detect forged sender addresses in email. When signing outgoing messages with DKIM, recipients can verify a respective message is from the sender it claims to be from and that the content of the message has not been modified.
Why should I use DKIM?
There are several advantages to using DKIM to sign your outgoing emails:
- The recipient is able to verify that the message originated from the specified sender.
- The recipient is able to verify that the message content (and important headers e.g. the subject) has not been altered.
- It lowers the chance of the email being identified as spam, although this is not the primary reason to sign.
If a spammer is trying to abuse your domain or email address, using DKIM reduces the chances of spam getting through. Many email servers check for a valid DKIM signature on incoming email.
How does it work?
DKIM adds a special DKIM Signature to the email headers. This signature contains a hashed value of the content (both important headers and the body). When a server that is checking for DKIM receives an email, it does the following:
- Retrieves the public key from the DNS of the sending domain.
- Uses the key to decrypt the signature.
- Verifies the content.
The exact actions a mail server takes when it discovers an invalid signature depend on the configuration of that server.
What do you sign by default?
Besides the body, the following headers are by default included in the signing:
Generate a DKIM certificate in the Mail Assure Control Panel
- In the Domain Level Control Panel, select Outgoing > DKIM .
Choose the DKIM key length (we advise 2048, if your DNS can accept that).
- Enter the DKIM selector and click on Generate and save new private/public pair.
Once the key has been generated, you will need to add it to the DNS on the sub domain, for example with:
Save this in your DNS as a TXT record and then, in the Outgoing User Settings page for your outgoing user ( see Manage Outgoing Users), you need to enter 'test' in the DKIM Selector field.
Any domain that sends using outgoing authentication that has this selector, should sign with this (assuming they do not have their own DKIM).
The following sites provide more information on DKIM: