In this article will cover the definition of DKIM, the importance of using it. Also we will know how DKIM works and how to generate it.
What is DKIM?
It stands to (DomainKeys Identified Mail), is an email authentication method we use it to prevent spoofing, forgery and phishing attacks for the email senders and recipients.
DkIM allows the reciever to check that they have received emails from an authorized mail server.
Why DomainKeys Identified Mail record is important
Email messages signed with DKIM appears more legitimate to your recipients and are less likely to go to your spam or spam folders. Domain Keys Identified Mail traversal is required for Domain-Based Message Authentication, Reporting, and Conformance (DMARC), which is a newer standard to reduce email spoofing that is based on DomainKeys Identified Mail and SPF.
How does DomainKeys Identified Mail work ?
It uses DNS TXT records for domain DNS Zone file with a special format. After creating the private/public key pair, then this public key is added to your domain’s DNS, This is the public key in a format for use in a bind 9 zone file.
Here is the steps of how DomainKeys Identified Mail works:
- The domain owner publishes a cryptographic public key.
- When the outbound mail server sent the massage, the server generates and attaches a unique DomainKeys Identified Mail signature to the email message header.
- When the recipient’s inbound mail server receives an email, it runs a DNS query to search for the sender domain’s public key.
1487369782.exmaple._domainkey.exmaple.com. IN TXT ( “v=DKIM1;t=s;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDS4Cw1wEkF1UyI8dqnu8ozkbhx” “yG39ZHGOagneXcdPJrSJCwZQ+aoRgl6iTY3W0X2TvRHnxaGmHuEawKF/53v1UWYV” “ApQ3uAPlBu0vaMW35zmdwCy7/nT7yF1Z6OUjHZOIbHDX87ke4An6Db5rYHyqp/Wh” “G1F7ubjWyBHaHk0d/wIDAQAB”)