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.

restoring exim.conf

Discussion in 'Data Protection' started by abubin, Jan 25, 2007.

  1. abubin

    abubin Well-Known Member

    Joined:
    Dec 7, 2004
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    I wanted to try something actually ASSP which need me to make changes to exim configuration using WHM interface. Before that, I did backup exim.conf file. After testing, I wanted to revert back to the exim.conf which I already backup earlier. How do I do that?

    I can't just copy exim.conf.bak to exim.conf because I believe cpanel have a cronjob that will update exim from the WHM configuration screen back into exim.conf.

    So, is this the command I should use to restart exim.conf.bak back into all exim configs?

    /scripts/buildeximconf
     
  2. xerophyte

    xerophyte Well-Known Member

    Joined:
    Mar 16, 2003
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    yes
    Code:
    /scripts/buildeximconf
    will rebuild the exim.conf for you
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    To properly restore it back to the default settings you should run:

    /scripts/reseteximtodefaults
     
  4. abubin

    abubin Well-Known Member

    Joined:
    Dec 7, 2004
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    but I do not want to reset exim back to default. I want to sync back exim.conf into my exim config.

    For eg, copy back my previous exim.conf file which is "cp exim.conf.bak exim.conf" and then run "/scripts/buildeximconf" or do I run "/scripts/reseteximtodefaults"?

    Thanks in advance.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You cannot do that. You'd have had to have a copy of /etc/exim.conf.local to do that.
     
  6. abubin

    abubin Well-Known Member

    Joined:
    Dec 7, 2004
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    ah..dang. Didn't backup that file.

    Is there a proper guide to backing up exim settings and then steps to restoring it?
     
Loading...

Share This Page