How can I set up a DKIM DNS Record?
I currently run a website, hosted on a VPS. The software is Plesk.
I have already setup an SPF Record and a DMARC Record, via the DNS Settings. I am a little stuck on how to set up a DKIM Record.
So far, I have gone into:
Settings & Tools > Mail Settings > Activated DKIM
As well as activating DKIM Server wide, I have also enabled it at Domain Level.
I have identified that the DKIM Private Key is stored at:
/etc/domainkeys/example.com
I now understand that I need to enter the DKIM DNS Record, via the DNS Settings. After browsing the web, I have read that the Public Record should be stored in /etc/opendkim/keys/example.com/mail.txt (or default.txt)
I have read the entry should look something like:
v=DKIM1; k=rsa; p=GHDSGGH7567KGFDBUUasd4655676vbhgvASDFsdfgh6456yh4565RFCpy4zMNWUbL6JM5XIyjBy3bUnANI5axeb/Lw/GBjUoSFLEiO80Tt8m3A5YrBKcodRQQURYiW6/YtElhLupHyfcxQhfNLU4z9JUOJKPjcpMZCj0Xv873QgVOl+7U605JdBHSPOx4ybBZwDq68cw9YFYRPmEwIDAQAB
The problem is, I cannot find such file. Am I missing further configuration requirements or could the Public Key be stored elsewhere?
dns vps mail-server plesk dkim
add a comment |
I currently run a website, hosted on a VPS. The software is Plesk.
I have already setup an SPF Record and a DMARC Record, via the DNS Settings. I am a little stuck on how to set up a DKIM Record.
So far, I have gone into:
Settings & Tools > Mail Settings > Activated DKIM
As well as activating DKIM Server wide, I have also enabled it at Domain Level.
I have identified that the DKIM Private Key is stored at:
/etc/domainkeys/example.com
I now understand that I need to enter the DKIM DNS Record, via the DNS Settings. After browsing the web, I have read that the Public Record should be stored in /etc/opendkim/keys/example.com/mail.txt (or default.txt)
I have read the entry should look something like:
v=DKIM1; k=rsa; p=GHDSGGH7567KGFDBUUasd4655676vbhgvASDFsdfgh6456yh4565RFCpy4zMNWUbL6JM5XIyjBy3bUnANI5axeb/Lw/GBjUoSFLEiO80Tt8m3A5YrBKcodRQQURYiW6/YtElhLupHyfcxQhfNLU4z9JUOJKPjcpMZCj0Xv873QgVOl+7U605JdBHSPOx4ybBZwDq68cw9YFYRPmEwIDAQAB
The problem is, I cannot find such file. Am I missing further configuration requirements or could the Public Key be stored elsewhere?
dns vps mail-server plesk dkim
add a comment |
I currently run a website, hosted on a VPS. The software is Plesk.
I have already setup an SPF Record and a DMARC Record, via the DNS Settings. I am a little stuck on how to set up a DKIM Record.
So far, I have gone into:
Settings & Tools > Mail Settings > Activated DKIM
As well as activating DKIM Server wide, I have also enabled it at Domain Level.
I have identified that the DKIM Private Key is stored at:
/etc/domainkeys/example.com
I now understand that I need to enter the DKIM DNS Record, via the DNS Settings. After browsing the web, I have read that the Public Record should be stored in /etc/opendkim/keys/example.com/mail.txt (or default.txt)
I have read the entry should look something like:
v=DKIM1; k=rsa; p=GHDSGGH7567KGFDBUUasd4655676vbhgvASDFsdfgh6456yh4565RFCpy4zMNWUbL6JM5XIyjBy3bUnANI5axeb/Lw/GBjUoSFLEiO80Tt8m3A5YrBKcodRQQURYiW6/YtElhLupHyfcxQhfNLU4z9JUOJKPjcpMZCj0Xv873QgVOl+7U605JdBHSPOx4ybBZwDq68cw9YFYRPmEwIDAQAB
The problem is, I cannot find such file. Am I missing further configuration requirements or could the Public Key be stored elsewhere?
dns vps mail-server plesk dkim
I currently run a website, hosted on a VPS. The software is Plesk.
I have already setup an SPF Record and a DMARC Record, via the DNS Settings. I am a little stuck on how to set up a DKIM Record.
So far, I have gone into:
Settings & Tools > Mail Settings > Activated DKIM
As well as activating DKIM Server wide, I have also enabled it at Domain Level.
I have identified that the DKIM Private Key is stored at:
/etc/domainkeys/example.com
I now understand that I need to enter the DKIM DNS Record, via the DNS Settings. After browsing the web, I have read that the Public Record should be stored in /etc/opendkim/keys/example.com/mail.txt (or default.txt)
I have read the entry should look something like:
v=DKIM1; k=rsa; p=GHDSGGH7567KGFDBUUasd4655676vbhgvASDFsdfgh6456yh4565RFCpy4zMNWUbL6JM5XIyjBy3bUnANI5axeb/Lw/GBjUoSFLEiO80Tt8m3A5YrBKcodRQQURYiW6/YtElhLupHyfcxQhfNLU4z9JUOJKPjcpMZCj0Xv873QgVOl+7U605JdBHSPOx4ybBZwDq68cw9YFYRPmEwIDAQAB
The problem is, I cannot find such file. Am I missing further configuration requirements or could the Public Key be stored elsewhere?
dns vps mail-server plesk dkim
dns vps mail-server plesk dkim
asked Apr 11 '18 at 2:50
CraigCraig
12219
12219
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
There are two ways to use DKIM on a Plesk server.
If you only want to use DKIM for the webmail and mails sent using POP/IMAP, activating DKIM on the domainlevel in Plesk should be enough.
(See https://support.plesk.com/hc/en-us/articles/115002519933-How-to-enable-DKIM-support-for-a-domain)
The DNS record should be added by Plesk automatically.
You can verify DKIM works by sending a mail to https://dkimvalidator.com/ using the webmail or your mail client.However, if you also want to send DKIM signed mails from the server itself (eg a contact form on the website), you need to edit the global server settings to pass all mails through DKIM.
While there are multiple ways to do this, installing openDKIM is the easiest. At my job, we do this automatically using configuration management, but this guide should help you on your way: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy
(TL;DR: install OpenDKIM, generate a key and edit your postfix to add the following milter:smtpd_milters = inet:127.0.0.1:8891, inet:127.0.0.1:12768
,
8891 is for openDKIM)
You'll find the keys under /etc/opendkim/keys/example.com/<name>.{txt,private}
the content of the .txt file should be placed in a TXT record for *name*._domainkey.example.com. Test again from the website or the server.
(From the commandline: mail -s 'DKIM test subject' -r 'test@example.com' xxx@dkimvalidator.com < /dev/null
)
Don't forget to double check your DMARC record, or you could potentially lose outgoing mails. (eg https://dmarcian.com/dmarc-inspector/) Maybe start with p=none
.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1312842%2fhow-can-i-set-up-a-dkim-dns-record%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are two ways to use DKIM on a Plesk server.
If you only want to use DKIM for the webmail and mails sent using POP/IMAP, activating DKIM on the domainlevel in Plesk should be enough.
(See https://support.plesk.com/hc/en-us/articles/115002519933-How-to-enable-DKIM-support-for-a-domain)
The DNS record should be added by Plesk automatically.
You can verify DKIM works by sending a mail to https://dkimvalidator.com/ using the webmail or your mail client.However, if you also want to send DKIM signed mails from the server itself (eg a contact form on the website), you need to edit the global server settings to pass all mails through DKIM.
While there are multiple ways to do this, installing openDKIM is the easiest. At my job, we do this automatically using configuration management, but this guide should help you on your way: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy
(TL;DR: install OpenDKIM, generate a key and edit your postfix to add the following milter:smtpd_milters = inet:127.0.0.1:8891, inet:127.0.0.1:12768
,
8891 is for openDKIM)
You'll find the keys under /etc/opendkim/keys/example.com/<name>.{txt,private}
the content of the .txt file should be placed in a TXT record for *name*._domainkey.example.com. Test again from the website or the server.
(From the commandline: mail -s 'DKIM test subject' -r 'test@example.com' xxx@dkimvalidator.com < /dev/null
)
Don't forget to double check your DMARC record, or you could potentially lose outgoing mails. (eg https://dmarcian.com/dmarc-inspector/) Maybe start with p=none
.
add a comment |
There are two ways to use DKIM on a Plesk server.
If you only want to use DKIM for the webmail and mails sent using POP/IMAP, activating DKIM on the domainlevel in Plesk should be enough.
(See https://support.plesk.com/hc/en-us/articles/115002519933-How-to-enable-DKIM-support-for-a-domain)
The DNS record should be added by Plesk automatically.
You can verify DKIM works by sending a mail to https://dkimvalidator.com/ using the webmail or your mail client.However, if you also want to send DKIM signed mails from the server itself (eg a contact form on the website), you need to edit the global server settings to pass all mails through DKIM.
While there are multiple ways to do this, installing openDKIM is the easiest. At my job, we do this automatically using configuration management, but this guide should help you on your way: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy
(TL;DR: install OpenDKIM, generate a key and edit your postfix to add the following milter:smtpd_milters = inet:127.0.0.1:8891, inet:127.0.0.1:12768
,
8891 is for openDKIM)
You'll find the keys under /etc/opendkim/keys/example.com/<name>.{txt,private}
the content of the .txt file should be placed in a TXT record for *name*._domainkey.example.com. Test again from the website or the server.
(From the commandline: mail -s 'DKIM test subject' -r 'test@example.com' xxx@dkimvalidator.com < /dev/null
)
Don't forget to double check your DMARC record, or you could potentially lose outgoing mails. (eg https://dmarcian.com/dmarc-inspector/) Maybe start with p=none
.
add a comment |
There are two ways to use DKIM on a Plesk server.
If you only want to use DKIM for the webmail and mails sent using POP/IMAP, activating DKIM on the domainlevel in Plesk should be enough.
(See https://support.plesk.com/hc/en-us/articles/115002519933-How-to-enable-DKIM-support-for-a-domain)
The DNS record should be added by Plesk automatically.
You can verify DKIM works by sending a mail to https://dkimvalidator.com/ using the webmail or your mail client.However, if you also want to send DKIM signed mails from the server itself (eg a contact form on the website), you need to edit the global server settings to pass all mails through DKIM.
While there are multiple ways to do this, installing openDKIM is the easiest. At my job, we do this automatically using configuration management, but this guide should help you on your way: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy
(TL;DR: install OpenDKIM, generate a key and edit your postfix to add the following milter:smtpd_milters = inet:127.0.0.1:8891, inet:127.0.0.1:12768
,
8891 is for openDKIM)
You'll find the keys under /etc/opendkim/keys/example.com/<name>.{txt,private}
the content of the .txt file should be placed in a TXT record for *name*._domainkey.example.com. Test again from the website or the server.
(From the commandline: mail -s 'DKIM test subject' -r 'test@example.com' xxx@dkimvalidator.com < /dev/null
)
Don't forget to double check your DMARC record, or you could potentially lose outgoing mails. (eg https://dmarcian.com/dmarc-inspector/) Maybe start with p=none
.
There are two ways to use DKIM on a Plesk server.
If you only want to use DKIM for the webmail and mails sent using POP/IMAP, activating DKIM on the domainlevel in Plesk should be enough.
(See https://support.plesk.com/hc/en-us/articles/115002519933-How-to-enable-DKIM-support-for-a-domain)
The DNS record should be added by Plesk automatically.
You can verify DKIM works by sending a mail to https://dkimvalidator.com/ using the webmail or your mail client.However, if you also want to send DKIM signed mails from the server itself (eg a contact form on the website), you need to edit the global server settings to pass all mails through DKIM.
While there are multiple ways to do this, installing openDKIM is the easiest. At my job, we do this automatically using configuration management, but this guide should help you on your way: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy
(TL;DR: install OpenDKIM, generate a key and edit your postfix to add the following milter:smtpd_milters = inet:127.0.0.1:8891, inet:127.0.0.1:12768
,
8891 is for openDKIM)
You'll find the keys under /etc/opendkim/keys/example.com/<name>.{txt,private}
the content of the .txt file should be placed in a TXT record for *name*._domainkey.example.com. Test again from the website or the server.
(From the commandline: mail -s 'DKIM test subject' -r 'test@example.com' xxx@dkimvalidator.com < /dev/null
)
Don't forget to double check your DMARC record, or you could potentially lose outgoing mails. (eg https://dmarcian.com/dmarc-inspector/) Maybe start with p=none
.
answered Feb 10 at 15:13
OlivierOlivier
63
63
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1312842%2fhow-can-i-set-up-a-dkim-dns-record%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown