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.

WHM V1 API - set_tweaksetting for X-Source Header

Discussion in 'cPanel Developers' started by Jack Latrobe, Sep 18, 2015.

  1. Jack Latrobe

    Jack Latrobe Member

    Joined:
    Sep 18, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne, Australia
    cPanel Access Level:
    DataCenter Provider
    Hey All,

    First time poster, so I apologise if this goes to the wrong location.

    I am wanting to use the WHM API V1 to roll out a change fleet wide. I want to use the API call "set_tweaksetting" to push out a change to the setting named "Track email origin via X-Source email headers" and turn it ON.

    The servers are all pretty close to this setup:
    • CENTOS 6.7 i686 xenhvm – server1
    • WHM 11.50.0 (build 30)

    The documentation for "set_tweaksetting" states "The keys and values for this function are located in the /var/cpanel/cpanel.config file."

    When I list this file on the server, I get a whole lot of great stuff I can change, but nothing that seems related to the x-source headers.

    Can anyone give me the name of the config item in /var/cpanel/cpanel.config, or can someone tell me how to find items if they are not in there? Worst case scenario, can someone please let me know if this cannot be done, so I can stop looking?
     
    #1 Jack Latrobe, Sep 18, 2015
    Last edited by a moderator: Sep 18, 2015
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  3. Jack Latrobe

    Jack Latrobe Member

    Joined:
    Sep 18, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne, Australia
    cPanel Access Level:
    DataCenter Provider
    Hi Kenneth,

    Looks like that document was the missing link! Thankyou for that. I'll test the API with that, and get back in touch shortly.

    Regards,

    Jack
     
  4. Jack Latrobe

    Jack Latrobe Member

    Joined:
    Sep 18, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Melbourne, Australia
    cPanel Access Level:
    DataCenter Provider
    For everyone reading, the following JSON API call will enable this:

    URL: /json-api/set_tweaksetting?api.version=1&key=eximmailtrap&value=1

    Thanks Kenneth for the support!
     
Loading...

Share This Page