cfbs add uninstall-dovecot
The dovecot
software is an open-source IMAP and POP3 server.
Its primary purpose is to act as an email storage server.
As most machines are not email servers, it is recommended to uninstall it when possible, to reduce attack surface.
Recommendation: Ensure only the intended machines are running the dovecot
software, by uninstalling it everywhere else (by default).
Explicitly define which hosts in your infrastructure are email servers and need the dovecot
software installed.
If you try installing the package and running the agent with this module, you should see it get uninstalled:
$ yum install dovecot
$ cf-agent -KI
info: Successfully removed package 'dovecot'
Hint: On Debian / apt
-based systems, the package name is dovecot-core
.
If this package is really needed on some hosts, you can add an exception with the exception_uninstall_dovecot
class.
This class can be set within def.json
(Augments), from policy, or in the Host specific data section in host info pages inside Mission Portal, the CFEngine Enterprise Web UI.
This module has no dependencies