Exim Configuration File via WHM and SSH

asterisk

Well-Known Member
Nov 11, 2005
61
0
156
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.
 

asterisk

Well-Known Member
Nov 11, 2005
61
0
156
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.
 

Izzee

Well-Known Member
Feb 6, 2004
469
0
166
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.
 
Last edited:

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
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