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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
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.
Start by first adding an SPF record <a href=“https://www.digitalocean.com/community/articles/how-to-use-an-spf-record-to-prevent-spoofing-improve-e-mail-reliability”>How To use an SPF Record to Prevent Spoofing & Improve E-mail Reliability</a>.
<blockquote>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.</blockquote> <br>An SPF record is not the same as a DKIM key. They are two different records. <br> <br>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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
