Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

how to fix cpanel spf and dkim generator scripts for my configuration

Discussion in 'General Discussion' started by varrinka, Jan 12, 2014.

  1. varrinka

    varrinka Member

    Mar 3, 2008
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I just added a hardware firewall in front of my dedicated server running WHM. I manually edited all of the DNS records to use the public WAN ip and figured I can just edit any new account records at the time I set them up. Then I noticed the IP address was part of the spf and dkim TXT entries.

    The problem is I have 81 DNS zones on this server. All were generated for the accounts via Cpanel's feature (that automatically populates the DNS records for the domain and all subdomains, and many of my sites have numerous subdomains). So manually editing all of those records... not a great option.

    So, I am hoping to find a way to customize Cpanel so it will use the public IP in dkim and spf generation.

    I've avoided any kind of hacks to this point so I also need to find out if there is an override system or some way to manage the changed files to avoid having my changes get overwritten on update.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    You could try using a command to edit a specific entry in all of the DNS Zones on your server. There is a similar thread on this here:

    Changing All NS Records

    It discusses this for NS records, but the same principle applies to any entry in a zone file.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice