{"description": "Make sure that mails delivered to root user are forwarded to a monitored\nemail address. Make sure that the address\n<sub idref=\"var_postfix_root_mail_alias\" /> is a valid email address\nreachable from the system in question. Use the following command to\nconfigure the alias:\n<pre>$ sudo echo \"root: <sub idref=\"var_postfix_root_mail_alias\" />\" &gt;&gt; /etc/aliases\n$ sudo newaliases</pre>", "rationale": "A number of system services utilize email messages sent to the root user to\nnotify system administrators of active or impending issues.  These messages must\nbe forwarded to at least one monitored email address.", "severity": "medium", "references": {"nist": ["CM-6(a)"], "srg": ["SRG-OS-000046-GPOS-00022"], "anssi": ["R75"]}, "control_references": {"anssi": ["R75"]}, "components": [], "identifiers": {}, "ocil_clause": "the alias is not set", "ocil": "Find the list of alias maps used by the Postfix mail server:\n<pre>$ sudo postconf alias_maps</pre>\nQuery the Postfix alias maps for an alias for the <i>root</i> user:\n<pre>$ sudo postmap -q root hash:/etc/aliases</pre>\nThe output should return an alias.", "oval_external_content": null, "fixtext": "Configure a valid email address as an alias for the root account.\n\nAppend the following line to \"/etc/aliases\":\n\nroot: <sub idref=\"var_postfix_root_mail_alias\" />\n\nThen, run the following command:\n\n$ sudo newaliases", "checktext": "", "vuldiscussion": "", "srg_requirement": "The Ubuntu 22.04 Information System Security Officer (ISSO) and System Administrator (SA) (at a minimum) must have mail aliases to be notified of an audit processing failure.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must have mail aliases to notify the information system security officer (ISSO) and system administrator (SA) (at a minimum) in the event of an audit processing failure.", "vuldiscussion": "It is critical for the appropriate personnel to be aware if a system is at risk of failing to process audit logs as required. Without this notification, the security personnel may be unaware of an impending failure of the audit capability, and system operation may be adversely affected.\n\nAudit processing failures include software/hardware errors, failures in the audit capturing mechanisms, and audit storage capacity being reached or exceeded.\n\nThis requirement applies to each audit data storage repository (i.e., distinct information system component where audit records are stored), the centralized audit storage capacity of organizations (i.e., all audit data storage repositories combined), or both.", "checktext": "Verify that Ubuntu 22.04 is configured to notify the appropriate interactive users in the event of an audit processing failure.\n\nFind the alias maps that are being used with the following command:\n\n$ postconf alias_maps\n\nalias_maps = hash:/etc/aliases\n\nQuery the Postfix alias maps for an alias for the root user with the following command:\n\n$ postmap -q root hash:/etc/aliases\nisso\n\nIf an alias is not set, this is a finding.", "fixtext": "Edit the aliases map file (by default /etc/aliases) used by Postfix and configure a root alias (using the user ISSO as an example):\n\nroot:    ISSO\n\nand then update the aliases database with the command:\n\n$ sudo newaliases"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Configure System to Forward All Mail For The Root Account", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/services/mail/postfix_client/postfix_client_configure_mail_alias/rule.yml", "template": null}