Hi
Yes, that bit I understand. I do have exim.conf.local already existing and I can successfully edit the exim.conf file directly with the correct syntax for dkim_sign_headers. What I cannot figure out is what syntax to use within the exim.conf.local file to make the change persistent.
In both the documentation and your comments the process is:
- Use the Advanced Editor WHM Interface
- Make a change
- WHM generates the relevant exim.conf.local changes
- You can then modify the line in exim.conf.local
BUT, in the Advanced Editor there is no option to Edit or Add to the remote_smtp or dkim_remote_smtp sections of the exim.conf file and therefore no option to have the system generate the relevant section within exim.conf.local.
If I manually add lines to the exim.conf.local file as you suggest like,
dkim_sign_headers = values and try to rebuild exim with "/scripts/buildeximconf" it errors:
Code:
Error message from syntax check:
2021-05-21 04:59:53 Exim configuration error in line 9 of /etc/exim.conf.buildtest.work.b600de5d:
main option "dkim_sign_headers" unknown
Alternatively, if I prefix the line with dkim_remote_smtp which I am assuming is the main option or section head I get:
Code:
Error message from syntax check:
2021-05-21 05:03:39 Exim configuration error in line 9 of /etc/exim.conf.buildtest.work.a76572d1:
main option "dkim_remote_smtp" unknown
Try again, placing the line I want near the section @TRANSPORTMIDDLE, i.e. close to where the dkim_remote_smtp section appears in Advanced Editor, yields:
Code:
Error message from syntax check:
2021-05-21 05:07:36.502 [1309132] cwd=/etc 4 args: /usr/sbin/exim -bV -C /etc/exim.conf.buildtest.work.7e52864c
2021-05-21 05:07:36.504 [1309132] Exim configuration error in line 2371 of /etc/exim.conf.buildtest.work.7e52864c:
option "dkim_remote_smtp" unknown
And finally attempting to add a section header formatted as "dkim_remote_smtp: " to mimic the syntax of exim.conf, provides this error:
Code:
Error message from syntax check:
2021-05-21 05:13:25.738 [1311765] cwd=/etc 4 args: /usr/sbin/exim -bV -C /etc/exim.conf.buildtest.work.28c3c781
2021-05-21 05:13:25.740 [1311765] Exim configuration error:
there are two transports called "dkim_remote_smtp"
Obviously, this syntax is recognised, but does not 'take precedence over' or 'complement' the existing exim.conf configuration, it is treated as conflicting with the exim.conf and fails.
If manual editing of the exim.conf.local with syntactically correct Exim options is not sufficient, there must be some specific syntax that is required to allow for the edit.
My question remains with emphasis added:
How to edit the exim.conf.local so that the desired changes to exim.conf are persistent and not removed with an Exim rebuild / restart / update?