documentation_complete: true

title: 'Uninstall dovecot Package'

description: |-
    {{% if 'ubuntu' not in product %}}
    {{{ describe_package_remove(package="dovecot") }}}
    {{% else %}}
    {{{ describe_package_remove(package="dovecot-core") }}}
    {{% endif %}}

rationale: |-
    If there is no need to make the Dovecot software available,
    removing it provides a safeguard against its activation.

severity: unknown

identifiers:
    cce@rhel8: CCE-85976-9
    cce@rhel9: CCE-85977-7
    cce@rhel10: CCE-86197-1
    cce@sle12: CCE-92249-2
    cce@sle15: CCE-91369-9
    cce@slmicro5: CCE-93916-5

references:
    cis@sle12: 2.2.12
    cis@sle15: 2.2.12

{{% if 'ubuntu' not in product %}}
{{{ complete_ocil_entry_package(package="dovecot") }}}
{{% else %}}
{{{ complete_ocil_entry_package(package="dovecot-core") }}}
{{% endif %}}

template:
    name: package_removed
    vars:
        pkgname: dovecot
        pkgname@ubuntu2204: dovecot-core
        pkgname@ubuntu2404: dovecot-core
