RHEL-08-040290 - RHEL 8 must be configured to prevent unrestricted mail relaying.

Information

If unrestricted mail relaying is permitted, unauthorized senders could use this host as a mail relay for the purpose of sending spam or other unauthorized activity.

Solution

If 'postfix' is installed, modify the '/etc/postfix/main.cf' file to restrict client connections to the local network with the following command:

$ sudo postconf -e 'smtpd_client_restrictions = permit_mynetworks,reject'

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_8_V2R1_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-230550r1017312_rule, STIG-ID|RHEL-08-040290, Vuln-ID|V-230550

Plugin: Unix

Control ID: 38d2e8c7c217e4208b64f838069c3202b3ac86734068549df729019b4549184e