Skip to content

The Postfix package is installed

An XCCDF Rule

Description

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

$ sudo dnf install postfix

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_postfix_installed
Severity
Medium
References
Updated



Remediation - OS Build Blueprint


[[packages]]
name = "postfix"
version = "*"

Remediation - Ansible

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

Remediation - Puppet

include install_postfix

class install_postfix {
  package { 'postfix':
    ensure => 'installed',
  }