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.

How to add hostnames to AutoSSL certificate

Discussion in 'Security' started by leonep, Jan 26, 2017.

Tags:
  1. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    63
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    Hi,
    I have successfully added autoSSL ceritficates for all domains . I noticed that it adds certificates for the all subdomains automatically, but how to add smtp.XXXX.XX host for all domains in the certificate without create subdomains for each account??
    thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,186
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The subdomain name must exist in order for the domain validation process to succeed.

    Thank you.
     
  3. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    63
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    so ,how to add smtp hostname for all subdomain automatically during account creation?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,186
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    You could use hooks to automatically run a custom script after account creation:

    Guide to Standardized Hooks - Software Development Kit - cPanel Documentation

    The Accounts::Create event is documented at:

    Guide to Standardized Hooks - Whostmgr Functions - Software Development Kit - cPanel Documentation

    When developing the custom script, you could make use of the following cPanel API 2 function:

    cPanel API 2 Functions - SubDomain::addsubdomain - Software Development Kit - cPanel Documentation

    Thank you.
     
Loading...

Share This Page