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:
$ apt-get 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 - Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
DEBIAN_FRONTEND=noninteractive apt-get install -y "postfix"
else
Remediation - Puppet
include install_postfix
class install_postfix {
package { 'postfix':
ensure => 'installed',
}