Remediation Steps
Follow the steps below to remediate this finding on Linux (RHEL/CentOS/AlmaLinux).
For Postfix on RHEL/CentOS, edit /etc/postfix/main.cf:
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destinationRestart Postfix:
sudo systemctl restart postfixFor Sendmail, edit /etc/mail/sendmail.mc and ensure:
FEATURE(`access_db')
FEATURE(`blacklist_recipients')
Regenerate sendmail.cf:
sudo make -C /etc/mail