How to edit exim.conf file on cPanel server and prevent it from overwriting

Here is how it works in other words plus example:

/etc/exim.conf – you can edit this file to keep some changes temporary, then restart exim to get them working. After /scripts/buildeximconf you changes will be reset.

/etc/exim.conf.localopts – its the same as WHM –> Exim Configuration Manager –> Standard options (Basic editor). Watch your syntax, no spaces there.

/etc/exim.conf.local – its the same as WHM –> Exim Configuration Manager –> Advanced Editor

For example we need to update smtp_accept_queue_per_connection from cPanel’s default 30 to 20

You cannot simply touch /etc/exim.conf.local and append there smtp_accept_queue_per_connection = 20.

You need to use WHM to get it generated in right way:

– login WHM –> Exim Configuration Manager –> Advanced Editor

– find and update smtp_accept_queue_per_connection

save your changes.

Once its done you should be able to find /etc/exim.conf.local file

And now you can change smtp_accept_queue_per_connection directly over /etc/exim.conf.local file.

Lets update it to 19. Edit /etc/exim.conf.local and rebuild exim conf and restart exim service:

/scripts/buildeximconf
service exim restart
exim -bP |grep smtp_accept_queue_per_connection
smtp_accept_queue_per_connection = 19

You can also copy /etc/exim.conf.local to another server to clone your settings there

Source: https://forums.cpanel.net/threads/how-to-edit-etc-exim-conf-manually.659885/

Similar Posts:

    None Found

Leave a Reply

Your email address will not be published. Required fields are marked *