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!

generate DKIM records

Discussion in 'cPanel Developers' started by mundakas, Apr 14, 2014.

  1. mundakas

    mundakas Registered

    Joined:
    Oct 23, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I need to add the DKIM and SPF records while creating accounts via API, but I can't figure out how to generate the DKIM string.

    I already add the account via createacct method, but now I am stuck in this.

    Can someone help me out?
    Thanks!
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,491
    Likes Received:
    1,964
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You can ensure the following options are enabled under the "Domains" tab in "Tweak Settings":

    Enable DKIM on domains for newly created accounts
    Enable SPF on domains for newly created accounts


    This will automatically setup DKIM and SPF records upon account creation. The following thread goes into details on how to setup a custom DNS record upon account creation if it's something you want to specify:

    Syntax for wwwacct

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

    mundakas Registered

    Joined:
    Oct 23, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Michael, thanks for your help.

    That's already checked and it works fine on account creation via cPanel, but it doesn't via API.

    At this moment I have to make another call to API after calling "createacct" method:

    It solves the issue but it isn't quite fancy.

    Thanks
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,491
    Likes Received:
    1,964
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    That could be a bug. Could you submit a bug report so we can reproduce the issue and open an internal case if necessary?

    Submit A Bug Report

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

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