UCF STIG Viewer Logo

The SMTP service must not use .forward files.


Finding ID Version Rule ID IA Controls Severity
V-240445 VRAU-SL-000620 SV-240445r671076_rule Medium
The .forward file allows users to automatically forward mail to another system. Use of .forward files could allow the unauthorized forwarding of mail and could potentially create mail loops, which could degrade system performance.
VMware vRealize Automation 7.x SLES Security Technical Implementation Guide 2023-09-22


Check Text ( C-43678r671074_chk )
Check if forwarding from sendmail:

# grep "0 ForwardPath" /etc/sendmail.cf

If the entry contains a file path and is not commented out, this is a finding.
Fix Text (F-43637r671075_fix)
Disable forwarding for sendmail and remove ".forward" files from the system:

Remove all .forward files on the system:

# find / -name .forward -delete

Use the following command to disable forwarding:

# sed -i "s/O ForwardPath/#O ForwardPath/" /etc/sendmail.cf

Restart the sendmail service:

# service sendmail restart