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 yum 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 - Anaconda Pre-Install Instructions
package --add=postfix
Remediation - OS Build Blueprint
[[packages]]
name = "postfix"
version = "*"
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
if ! rpm -q --quiet "postfix" ; then
yum install -y "postfix"
fi
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',
}