log_selector exim.conf

sparek

Verified User
Joined
Jun 27, 2019
Messages
124
Perhaps there is a way to set this and I missed the documentation.

The way I am reading it, it's not possible to set the log_selector directive in exim.conf to remain after an exim_conf rebuild.

You can edit the log_selector directly in the exim.conf file, but those changes will be lost when exim_conf is rebuilt.

Since log_selector is (I think) a fairly typical customized option in exim... should this variable be set in /etc/exim.variables.conf instead?

This way a customized log_selector value could be set in /etc/exim.variables.conf.custom and would remain through exim_conf rebuilds.

Or is there a way to maintain a customized log_selector value across exim_conf rebuilds?
 

sparek

Verified User
Joined
Jun 27, 2019
Messages
124
Or... perhaps a better, more encompassing solution would be a built-in POST exim_conf build script that runs after build exim_conf has been run.

Then you could put something like:

perl -i -pe 'BEGIN{undef $/;} s/log_selector.*arguments/log_selector = +all/smg' /etc/exim.conf
systemctl reload exim


in that script to reset the log_selector directive after exim_conf is rebuilt. Or anything else that you want to do after exim_conf is rebuilt.
 
Top