cjfl0res
By:
cjfl0res

how to add SPF Record for DKIM Key?

November 17, 2013 6.5k views
Hi! Newbie here, I followed this tutorial: https://www.digitalocean.com/community/articles/how-to-install-iredmail-on-centos-6-3-x64 but all mails I sent using john@mydomain.com are being marked as spam. Then I realized I forgot to do one step, that is to add a SPF Record containing DKIM key in the Droplet. But the tutorial doesn't go too much detail on how to do this. I checked iRedMail.tips and found these lines: DNS record for DKIM support: ; key#1, domain dealwithin.com, /var/lib/dkim/dealwithin.com.pem dkim._domainkey.dealwithin.com. 3600 TXT ( "v=DKIM1; p=" "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDSiChwVXgufTwQyzTi8ICof3X8" "FIB3QS1er/HlMkiWG5jAuc6ByAd01Zcmc6crH15uukTu8a/sH0brnuMAwY6XouMc" "ENncPQOrCGUf5m529K7Rt/jgnOf7stfF0Z0XvN99BkcFaA6oAw5yzQ5rEB2k/jih" "8IroFqS7R2yJLVbUhwIDAQAB") i tried imitating the name field of the one in the tutorial "dkim_domainkey" and copy & pasted these: "v=DKIM1; p=" "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDSiChwVXgufTwQyzTi8ICof3X8" "FIB3QS1er/HlMkiWG5jAuc6ByAd01Zcmc6crH15uukTu8a/sH0brnuMAwY6XouMc" "ENncPQOrCGUf5m529K7Rt/jgnOf7stfF0Z0XvN99BkcFaA6oAw5yzQ5rEB2k/jih" "8IroFqS7R2yJLVbUhwIDAQAB" to the text field. Since I can't send mail anymore I assume that I did it incorrectly. How should I input the DKIM key? TIA
3 Answers
by Pablo Carranza
A carefully tailored SPF record will reduce the likelihood of your domain name getting fraudulently spoofed and keep your messages from getting flagged as spam before they reach your recipients.
that is to add a SPF Record containing DKIM key in the Droplet. But the tutorial doesn't go too much detail on how to do this.

An SPF record is not the same as a DKIM key. They are two different records.

An SPF record is usually enough however if that doesn't fix emails going to spam you might want to look into adding a DKIM key.

I have 2 files: mail.private and mail.txt
The mail.txt file contains the key to insert DNS record (TXT).
Where can I put the file mail.private (which contains the DKIM key)?

Thank you.

[UPDATE] I've found this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy

Thank you.

by Popute Sebastian Armin
This tutorial will focus on installing and configuring OpenDKIM: an open source implementation of the DKIM sender authentication system.
Have another answer? Share your knowledge.