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.

Exim Configuration File via WHM and SSH

Discussion in 'General Discussion' started by asterisk, Nov 23, 2005.

  1. asterisk

    asterisk Well-Known Member

    Joined:
    Nov 11, 2005
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    Which file is WHM pulling up when using Exim Configuration Editor in Advanced Mode? I would like to edit via SSH the Exim config file and for those changes to be reflected in WHM's Exim Configuration Editor.

    I made an assumption that it was exim.conf.buildtest but committing changes to it does not show up under WHM. Any help would be deeply appreciated.

    Many thanks.
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Should be /etc/exim.conf.local
     
  3. asterisk

    asterisk Well-Known Member

    Joined:
    Nov 11, 2005
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Thanks, however it doesn't seem to be /etc/exim.conf.local as that only holds the partial file to the entire thing that is displayed in WHM's Exim Configuration Editor.

    It would be helpful to know which file WHM is pulling up because directly editing exim.conf will have the possibility of it being overwritten by WHM if future edits are done via WHM.
     
  4. Izzee

    Izzee Well-Known Member

    Joined:
    Feb 6, 2004
    Messages:
    469
    Likes Received:
    0
    Trophy Points:
    16
    My understanding is it loads /etc/exim.conf.buildtest

    You make your changes/edits in this file in WHM and if all is correct the script then transfers your changes/edits to /etc/exim.conf

    You should see that these 2 files are identical in size in the /etc directory after a successful edit.

    The reason for this behaviour is the changes/edits you do will not impact on the exim.conf until they have been checked and found to have no errors.

    (I have not tried this so backup both files first and be careful your edits are correct)
    From shell my guess is you would have to edit both exim.conf and exim.conf.buldtest to be identicle. Then restart exim.

    Test to see if your edits now appear in WHM.
     
    #4 Izzee, Nov 23, 2005
    Last edited: Nov 23, 2005
  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
    Indeed. Changes in the WHM Configuration Editor are stored in /etc/exim.conf.local, however, if you make any changes in that file you then should run:

    /scripts/buildeximconf

    For those that use MailScanner, you should then also need to run:

    /scripts/mailscannerupdate
     
  6. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    exim -bV

    i think it should give you the main exim configuration file.
     
Loading...

Share This Page