Skip to content

The s-nail Package Is Installed

An XCCDF Rule

Description

A mail server is required for sending emails. The s-nail package can be installed with the following command:

$ sudo dnf install s-nail

Rationale

Emails can be used to notify designated personnel about important system events such as failures or warnings.

ID
xccdf_org.ssgproject.content_rule_package_s-nail_installed
Severity
Medium
References
Updated



Remediation - Ansible

- name: Ensure s-nail is installed
  package:
    name: s-nail
    state: present
  when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"]
  tags:

Remediation - Puppet

include install_s-nail

class install_s-nail {
  package { 's-nail':
    ensure => 'installed',
  }

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then

if ! rpm -q --quiet "s-nail" ; then
    dnf install -y "s-nail"
fi

Remediation - Anaconda Pre-Install Instructions


package --add=s-nail

Remediation - OS Build Blueprint


[[packages]]
name = "s-nail"
version = "*"