Skip to main content

SPF not replaced on transfer

Comments

7 comments

  • cPanelLauren
    Hello, I believe this issue is fixed in CPANEL-18439 in terms of the SPF records not being updated on restore. The fix for this is in v72 of cPanel. As for the comments, that data is there to preserve any changes that may have been made when transferring the DNS zone files to the new server. I'm not aware of a method to remove these without checking the DNS record at /var/named/domain.tld.db but I should point out that because of the ; they are not in use and therefore have no affect on the DNS zone file itself. Thank you,
    0
  • rhm.geerts
    [quote]he fix for this is in v72 of cPanel.
    Ehmz... Nice, but when will this be available? Because I only see the newest version being V70.0.26 in Current and Edge. And we are running the Stable version v68.0.36. Is there a way we can adjust something to fix this SPF issue manually or on a shorter term? As for the DNS comments, pity these comments can not be disabled or mass removed.
    0
  • cPanelLauren
    v70 is set to go to RELEASE within the next couple of weeks and v72 will follow. While the comments being added to your DNS zone files on transfer is done purposefully, I would encourage you to open a feature request using the link in my signature if you'd like to see an easy/official way to remove these once the transfer is complete and you can confirm that the sites are functioning as you wish. Thank you,
    0
  • rhm.geerts
    Oke thank you, but we probably can't wait that long to transfer all accounts to the new server. Do you have an easy way to replace all old ip's in the SPF with the new ip? Maybe you can give me a perl -pi -e command to replace the spf ip's? I will send in a ticket after transfer for the DNS zone files, as that is less important then wrong ip's in SPF. Please let me know if you want me to send in a ticket for that too, it's no problem.
    0
  • cPanelLauren
    Hi, You could use: /usr/local/cpanel/bin/spf_updater $USER to update the IP though this wouldn't replace the old IP it would add the new IP to the SPF. You'd need to create a loop to go through all users that were transferred. To completely replace the SPF on the account you could first run: /usr/local/cpanel/bin/spf_uninstaller $USER Then run /usr/local/cpanel/bin/spf_installer $USER to add a new SPF for all the domains, subdomains and addon domains that are present within the account. This would again be for all users and a simple loop would need to be created to do so. The following may be useful for examples of the loop: There is also the whmapi1 which could be used to modify the zone record
    0
  • rhm.geerts
    Oke. I've got little knowledge of scripting. So I will see how much time it costs to do it manually and otherwise maybe submit a ticket for it to prevent failures being made. Thank you very much!
    0
  • cPanelLauren
    You're welcome and I'm glad we were able to potentially find something that works for you in the meantime. Thank you,
    0

Please sign in to leave a comment.