virtualmin
Differences
This shows you the differences between two versions of the page.
| virtualmin [2025/03/06 12:04] – created protocol | virtualmin [2025/03/06 15:35] (current) – protocol | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Check SPF records ===== | ===== Check SPF records ===== | ||
| < | < | ||
| - | Step 1 | ||
| - | Install the SPF Checker for postfix | ||
| apt-get install postfix-policyd-spf-python | apt-get install postfix-policyd-spf-python | ||
| - | Step 2 | + | |
| edit your / | edit your / | ||
| policyd-spf | policyd-spf | ||
| user=policyd-spf argv=/ | user=policyd-spf argv=/ | ||
| - | |||
| - | Step 3 | ||
| edit your / | edit your / | ||
| policyd-spf_time_limit = 3600 | policyd-spf_time_limit = 3600 | ||
| smtpd_recipient_restrictions = | smtpd_recipient_restrictions = | ||
| - | | + | ... |
| - | reject_unauth_destination, | + | reject_invalid_hostname, |
| - | check_policy_service unix: | + | reject_unauth_destination, |
| - | ... | + | reject_rbl_client cbl.abuseat.org, |
| + | | ||
| + | | ||
| + | check_policy_service unix: | ||
| + | ... | ||
| Make sure, you are putting the check_policy_service unix after the reject_unauth_destination line, to not become an open relay to the world. | Make sure, you are putting the check_policy_service unix after the reject_unauth_destination line, to not become an open relay to the world. | ||
| - | |||
| - | |||
| - | |||
| - | Step 4 | ||
| - | Finally, do not forget to reload / restart your postfix | ||
| / | / | ||
| - | |||
| - | |||
| - | Step 5 | ||
| - | If you find the following in received Email Headers, your SPF is working properly | ||
| - | |||
| - | Received-SPF: | ||
| - | |||
| - | |||
| - | Step 6 (optional) | ||
| - | instead of blocking wrong SPF Senders(default behaviour), you can just let python-spf tag them for spamassasin | ||
| edit / | edit / | ||
| Line 45: | Line 31: | ||
| Mail_From_reject False | Mail_From_reject False | ||
| + | |||
| this will accept Emails with wrong SPF but SA will mark them as spam afterwards. | this will accept Emails with wrong SPF but SA will mark them as spam afterwards. | ||
| </ | </ | ||
virtualmin.txt · Last modified: 2025/03/06 15:35 by protocol
