Skip to main content

Trouble setting up DKIM

Comments

5 comments

  • Spork Schivago
    I believe I fixed the issue. I didn't realize I had to set the authoritative nameservers in WHM >> IP Functions >> Configure Remote Service IPs. I used nslookup -type=A example.com to get an IP address of some authoritative nameserver, then I ran nslookup -type=SOA to see that there's a ns1.linode.com, ns2.linode.com, ns3.linode.com, ns4.linode.com, ns5.linode.com. After that, I just ping'ed and ping6'ed them to get their IP addresses. I hope they don't change overtime or anything. Afterwards, I went back to // email / test From: and tried the test again. This time, it shows that DKIM is setup properly. And cPanel didn't give the warning this time when I enabled DKIM.
    0
  • cPanelMichael
    Hello, I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.
    0
  • Spork Schivago
    Hello, I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.

    If I hadn't tried disabling and reenabling DKIM, I would have totally forgotten about the message about the nameservers. Once I googled the message, I saw people that have similar trouble like me always seem to be in a similar situation, where they just never properly configured the IP addresses of the remote nameservers. Any way to get cPanel to link to a document that says that or to maybe include a help link that suggests the "fix" whenever someone is setting up DKIM / SPF but cPanel detects a non-authoritative nameserver? Also, I set up DMARC by creating a TXT DNS resource record like this:
    "v=DMARC1; p=quarantine; aspf=r; fo=1; rf=afrf; rua=postmaster@example.com; ruf=postmaster@example.com;"
    I read up on DMARC here: HOWTO - Define a DMARC Record It shows the various tags and values that I can use. My understanding is with p=quarantine field, e-mails that fail the DKIM / SPF will still go through, but be marked as SPAM, instead of getting rejected. The fo=1 means if either SPF or DKIM or both fail, quarantine them. fo=0 would mean both have to fail. The rf=afrf means to send the reports in the Abuse Report format, which is defined by RFC 5965. The reports get sent to postmaster@example.com. I couldn't find a place in cPanel / WHM to have the system configure DMARC automatically. Does cPanel not have an option for DMARC yet? Thanks!!!!
    0
  • Infopro
    Does cPanel not have an option for DMARC yet?

    in your cPanel > Domains > Zone Editor, Manage, find the Add Record button, on it's menu, select Add DMARC Record.
    0
  • Spork Schivago
    in your cPanel > Domains > Zone Editor, Manage, find the Add Record button, on it's menu, select Add DMARC Record.

    Thank you. I had already added it and got it working using the zone editor in WHM, but I decided to delete the resource record and do it the way you described. That's a nice interface! Most of the stuff I do is through WHM and not cPanel. I don't play around in there much. I figured it'd be in the WHM Zone Editor, but I guess it makes sense to keep it in cPanel, so other users who have cPanel accounts on your server can create their own DMARC records.
    0

Please sign in to leave a comment.