@Ales
Let's start with this remark :
It does, thanks. Comparing configurations of such services between different systems is always helpful.
It is always an excellent idea to
- verify which OS the thread starter is using, before giving a reply as a Plesk Expert
- include a solution for other OSes or system environments, since that can simply do no harm
and there is always the possibility that Plesk Experts or Plesk Forum members help each other to achieve before mentioned objectives, by augmenting each other's posts.
Actually, that is the entire purpose of this forum - helping each other.
Now, with respect to the remark
It does if you use qmail instead of postfix. Qmail under Plesk uses a few more xinetd services.
you will have to note that I am aware of that - I have many servers running Plesk with various setups, for testing purposes alone.
However, you should also note that using Qmail is not to be preferred over Postfix - the default Postfix (as shipped with Plesk) is a bit more secure and even when one does manage to configure Qmail security properly, the usage of Qmail will still increase the actual attack surface : the performance gain is not worth that type of risk.
With respect to
Since the ENABLE_TESTS=ALL setting is already a part of rkhuter.conf (along with the list of disabled tests), it isn't really needed in the rkhunter.conf.local, but setting both ENABLE_TESTS and DISABLE_TESTS again in one place makes for a safer and less error prone configuration because rkhunter.conf can change during system updates, while rkhunter.conf.local won't.
I must emphasize that I am not misunderstanding rkhunter config.
It is exactly what you yourself stated : "Since the ENABLE_TESTS=ALL setting is already a part of rkhuter.conf (along with the list of disabled tests)"
For that reason alone, it is not necessary to fill rkhunter.conf.local with the line ENABLE_TESTS=ALL - actually, this line in rkhunter.conf.local has NO function!
In essence, the config in rkhunter.conf is preferred over the config in rkhunter.conf.local : when the config in both files conflict, rkhunter.conf is dominant.
In my humble opinion, this is not only impractical, but I would be safe to call it a (minor) design flaw - one of the many reasons that rkhunter is not the best tool for the job.
Nevertheless, I agree with the part : " .... again in one place makes for a safer and less error prone configuration .... "
It is always good to be safe ..... and in the case of rkhunter configuration, it does not make any difference to include some config for the second time in rkhunter.conf.local.
That is exactly what I stated earlier with
this is a safe approach, but a inherently wrong approach : enabling all tests is really not necessary
However, you should be aware that rkhunter config duplication is not always a good idea - in some cases, the duplication of default config (as present in rkhunter.conf) to the custom config file rkhunter.conf.local will lead to unexpected situations or even dangerous situations : at upgrade time with a change of rkhunter and/or rkhunter.conf, it can be the case that the proper working of rkhunter is not guaranteed anymore, if the rkhunter.conf.local has not been adjusted accordingly.
It sounds a bit odd, but these "unexpected" or "dangerous" situations do occur more then should be expected.
For that reason alone, it is often best to keep rkhunter.conf.local limited to an absolute minimum.
Again, I have to emphasize the actual differences between specific circumstance and the relation to what we both are saying :
1 - in case of a
given specific version and config of rkhunter : we agree that it is or can be safe to duplicate config to rkhunter.conf.local,
2 - in case of a change in rkhunter or it's config : we
probably agree that
config duplication to rkhunter.conf.local
becomes a risk, in the sense that already
existing duplicated config can become
dangerous, unless the config duplicates to rkhunter.conf.local are properly maintained and updated.
In summary, I would not recommend config duplication to rkhunter.conf.local : it is not necessary
and it is impractical, since it requires
perfect updating of rkhunter.conf.local.
Kind regards..........