Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

How to edit /etc/exim.conf manually

Comments

11 comments

  • chengkinhung
    After grep full system, I found the WHM eximconfiguration AdvancedEditor interface is using files in path: /usr/local/cpanel/etc/exim/ I edit files under this path: /usr/local/cpanel/etc/exim/ and refresh WHM eximconfiguration AdvancedEditor interface, and saw the changing applied in there, then I click the Save, confirm the changing write into /etc/exim.conf. Seems all are working well, but I am not sure if this is right way.
    0
  • Henry Carter
    Any changes here /etc/exim.conf will be temporary until service restart, edit the /etc/exim.conf.local file and restart the service. Kindly follow the Advanced Editor feature to make changes to avoid errors.
    0
  • chengkinhung
    Any changes here /etc/exim.conf will be temporary until service restart, edit the /etc/exim.conf.local file and restart the service. Kindly follow the Advanced Editor feature to make changes to avoid errors.

    Thanks for your reply. did you mean even the changing of /etc/exim.conf through WHM EximConfigurationManager's AdvancedEditor interface will also be overwrite when exim or cpanel service restart ? However I had already restart this servcies many times, my changing are still exist.
    0
  • Henry Carter
    Sorry for the delay. You can utilize /etc/exim.conf.local file to ensure changes are preserved through updates. This is the similar file that the Advanced Editor for Exim in WHM uses. Ref:
    0
  • chengkinhung
    Sorry for the delay. You can utilize /etc/exim.conf.local file to ensure changes are preserved through updates. This is the similar file that the Advanced Editor for Exim in WHM uses. Ref:
    0
  • cPanelLauren
    You can add directives into /etc/exim.conf.local, this is where all modifications made in the advanced exim configuration manager are placed - though you should be able to add anything you need in the configuration manager rather than manually through the file.
    0
  • Henry Carter
    The Advanced Editor tab is to adjust the Exim's default configuration. For most changes that you make to your Exim setup, the system changes both the /etc/exim.conf.localopts and /etc/exim.conf.local documents. The system utilizes the data in these records when it rebuilds the /etc/exim.conf document. In the event that you alter exim.conf record, it will lost the changes when the exim gets updated or reconstructed. The /etc/exim.conf.local file is Exim's override document and stores Exim's default configuration. The /etc/exim.conf.local file doesn't exist naturally. The system makes the /etc/exim.conf.local file after you design Exim's settings to utilize non-default values. cPanel is setting the custom ACLs here - /usr/local/cpanel/etc/exim You need to rebuild the Exim when you alter /etc/exim.conf.local manually to mirror the changes. The following are the directions to revamp and restart the Exim. /scripts/buildeximconf /usr/local/cpanel/scripts/restartsrv_exim
    0
  • chengkinhung
    Hi, Henry Carter and cPanelLauren, thanks for the reply and sorry for the delay. I had tried many way to edit /etc/exim.conf.local but all failed, I guess this file only for adding the new lines but not for relacing the current lines.
    0
  • ikstlan
    Hi everyone, 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
    0
  • chengkinhung
    Hi, @ikstlan, thanks for your detail guide. However, as my first post had already said: "not all conent allow to edit in WHM eximconfiguration Advance Editor interface", and what I want to change is not allow to modify in the WHM interface, and that is why I am trying to find the cPanel config files in path /usr/local/cpanel/etc/exim/.
    0
  • Jean Roberto
    Hello, @chengkinhung, did you find the answer you were looking for?
    0

Please sign in to leave a comment.