The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...
Similar Threads - generate DKIM records
  1. Stephen Wilkey
    Replies:
    3
    Views:
    246
  2. sparek-3
    Replies:
    2
    Views:
    396

Share This Page