Introduction
Some system administrators want their servers to reject messages that fail SPF checks without enabling SpamAssassin. This article provides the steps to configure Exim to reject messages that fail SPF checks.
Procedure
- Log in to WHM as the "root" user.
- Navigate to "Home / Service Configuration / Exim Configuration Manager"
- Click the "Advanced Editor" tab.
- Scroll down to the "custom_end_identify_sender" option.
- Ensure that the "custom_end_identify_sender" option is selected.
- Enter the following in the "custom_end_identify_sender" textbox.
CONFIG_TEXT: accept
condition = ${if match_ip{$sender_host_address}{net-iplsearch;/etc/trustedmailhosts}{1}{0}}
deny spf = fail
message = 550 5.7.1 SPF check failed: $sender_address is not authorised to send from $sender_host_address
log_message = SPF hard fail: $sender_address / $sender_host_address
7. Scroll to the bottom of the page.
8. Click the "Save" button.
Comments
0 comments
Article is closed for comments.