Exim Config Restore - Command Line

sparek-3

Well-Known Member
Aug 10, 2002
2,152
268
388
cPanel Access Level
Root Administrator
Is there any way to restore an exim configuration that is backed up in the WHM from the command line?

Reason being, I have a lot of servers, I'd like to push the same exim configuration to all of those servers. I'd like to configure it once in a WHM, save it, then push that out to all of the other servers, and logging into each server's WHM is too cumbersome.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

You can extract the data manually from the archive that is generated. EX:

Code:
tar -zxvf /var/cpanel/config.backups/whm-config-backup-cpanel__smtp__exim-10.330000-1376314251.tar.gz
Then, you can manually place the files in their appropriate locations and build the Exim configuration file via:

Code:
/scripts/buildeximconf
Thank you.