Updated: 2024/07/12
Postfix main.cf:
smtpd_sender_restrictions =
texthash:/etc/postfix/sender_access
Create /etc/postfix/sender_access containing rejected senders:
# Entire domain domain.com
domain.com REJECT
# All sub-domains of domain.com
.domain.com REJECT
# Individual user
person@domain.com REJECT
Set proper permissions:
chmod 644 /etc/postfix/sender_access
Home > Build Procedures > Postfix SMTP gateway for Exchange on Rocky 9