This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:mailserver-trixie [2026/07/28 15:39] – oemb1905 | computing:mailserver-trixie [2026/07/28 19:52] (current) – oemb1905 | ||
|---|---|---|---|
| Line 334: | Line 334: | ||
| #spf incoming policy and recipient restrictions\ | #spf incoming policy and recipient restrictions\ | ||
| policyd-spf_time_limit = 3600\ | policyd-spf_time_limit = 3600\ | ||
| - | smtpd_recipient_restrictions = permit_mynetworks, | + | smtpd_recipient_restrictions = |
| + | | ||
| + | | ||
| + | | ||
| + | reject_non_fqdn_recipient, | ||
| + | reject_unknown_recipient_domain, | ||
| + | | ||
| </ | </ | ||
| Line 353: | Line 359: | ||
| reject_unauthenticated_sender_login_mismatch, | reject_unauthenticated_sender_login_mismatch, | ||
| reject_sender_login_mismatch, | reject_sender_login_mismatch, | ||
| + | check_sender_access hash:/ | ||
| permit | permit | ||
| </ | </ | ||
| + | |||
| + | The sender_access file is super helpful for repeat offenders. Sure, you can also just blacklist those in sieve rules, but that means that they still arrive and fill up your Junk folder. In some cases, spammers will send 100s of the same message per day. In those cases, it is helpful to stop them at the gates with postfix' | ||
| + | |||
| + | nano / | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | sudo postmap / | ||
| + | sudo postfix reload | ||
| + | sudo systemctl restart postfix | ||
| Now that the SPF/ | Now that the SPF/ | ||
| Line 1102: | Line 1119: | ||
| I rewrote the mail server tutorial for the presentation [[https:// | I rewrote the mail server tutorial for the presentation [[https:// | ||
| - | --- // | + | --- // |