Skip to main content

DKIM and multi domain hosting

Comments

5 comments

  • ruzbehraja
    Setup the DKIM on the cPanel Server and then using the details here, copy paste the key into Cloudflare. DKIM recipe with 3rd party / external DNS
    It took me a long time to figure out all the steps involved, so here is what you need to do. 1) Turn on DKIM signing in your outgoing messages by going to WHM, Acount Functions, Modify an Account. Edit your account by clicking "Enable DKIM on this account". Alternatively, turn on DKIM on CPanel - Email Authentication for your web site. (Ignore the fact that it only talks about DKIM for incoming mail.) 2) Figure out your DKIM public key using one of these methods: a. The easiest way (if it works) is to find this info in CPanel - Email Authentication. If you see " Enabled & Active (DNS Check Passed)", then go on to the next method. Otherwise, you should see a long TXT record including your public DKIM key. b. At the WHM, go to Main >> DNS Functions >> Edit DNS Zone for your domain, and find the TXT record for DKIM there. c. Otherwise, log on to your server with Putty (or similar terminal program) for the next two steps: Figure out your DKIM Selector (e.g. 'default') by typing: grep dkim_selector /etc/exim.conf, then find out your server's DKIM public key by going to /var/cpanel/domain_keys/public/ Type "more mywebsite.com" to see the public key. Copy the public key, not including the BEGIN/END lines. 3) Go to your nameserver (perhaps with your Domain Registrar), and insert a TXT record for "default._domainkey.mywebsite.com" (use your DKIM Selector here), with a value of "v=DKIM1; g=*; k=rsa; p=PublicDomainKeyGoesHere" 4) You can send email via (a) a dedicated account, (b) sent via a web page on mywebsite.com (e.g. by PHP), or (c) an alias, using "mywebsite.com" as the From address (e.g. the actual mail account is using myotherwebsite.com, but "From" is set to something@mywebsite.com[/EMAIL]). IMPORTANT: Any email you send must have the domain name in lower case. (I believe this is a CPanel bug that they are aware of.) 5) Test it by sending an email to check@isnotspam.com[/EMAIL]. You will get a return email telling you whether the email passed several tests.

    0
  • Arjon
    Setup the DKIM on the cPanel Server and then using the details here, copy paste the key into Cloudflare. DKIM recipe with 3rd party / external DNS

    This is for the main domain, right? What about the addon domains?
    0
  • Arjon
    Setup the DKIM on the cPanel Server and then using the details here, copy paste the key into Cloudflare. DKIM recipe with 3rd party / external DNS

    I have found an easier way:
    0
  • ruzbehraja
    I have found an easier way

    In your example you are assuming that the Nameservers are not already set to Cloudflare and are still pointing to cPanel with the DNS configured. If your domains were already on cloudflare, your example wouldn't work... Then you would have to pul the info from the CLI using the steps given.
    0
  • cPanelMichael
    This is for the main domain, right? What about the addon domains?

    Hello, You should be able to use the same steps for each domain name. You may also find this thread helpful: DKIM and CloudFlare Thank you.
    0

Please sign in to leave a comment.