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!

Import Exim configuration from bash

Discussion in 'E-mail Discussion' started by DennisMidjord, Feb 28, 2018.

  1. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    180
    Likes Received:
    14
    Trophy Points:
    18
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    It's a pain to configure new cPanel servers as everything has to be done from scratch. I'm currently creating a bash script that installs cPanel along with all the software we're using.
    Various configuration files (like csf configuration and EA4 profiles) are cloned from git, but I was wondering what the best approach would be for the Exim configuration.

    What I'm thinking is this:
    1. A change is made to the Exim configuration
    2. I upload the changes of /etc/exim.conf and /etc/exim.conf.local to git
    3. Whenever we setup a new server, the bash script gets the newest files from git and copies them to /etc
    4. Restart Exim
    Is there a better way to do this?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    You could use the following tool to backup and restore the Exim configuration:

    The cpconftool Script - Version 70 Documentation - cPanel Documentation

    However, note this is generally used for backing up and restoring configuration files on the same server. For Exim, it includes:

    You may want to instead use a solution like the one you mentioned, and only include the files without values specific to the local cPanel server.

    Let us know if this helps.

    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