From 2840dc73f6c33b66b68583f4690f2b3b58a4bf25 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sat, 30 Oct 2021 12:55:53 +0200 Subject: [PATCH] rename filters --- smtpd.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smtpd.conf b/smtpd.conf index 36f66bc..727b2a2 100644 --- a/smtpd.conf +++ b/smtpd.conf @@ -6,10 +6,10 @@ pki server_hostname.com key "/etc/letsencrypt/live/server_hostname.com/privkey. # Reject emails from IP addresses without a domain associated. # This blocks most spam without blocking legitimate emails. -filter "rdns" phase connect match !rdns disconnect "550 no rDNS" +filter check-rdns phase connect match !rdns disconnect "550 no rDNS" # Reject emails from IP addresses that don't match the IP address of their # associated domain (forward-confirmed reverse DNS). This is less useful. -filter "fcrdns" phase connect match !fcrdns disconnect "550 no FCrDNS" +filter check-fcrdns phase connect match !fcrdns disconnect "550 no FCrDNS" # Do DKIM signing with rspamd. filter rspamd proc-exec filter-rspamd @@ -20,7 +20,7 @@ filter rspamd proc-exec filter-rspamd # but it makes OpenSMTPD error after starting on Debian and Ubuntu # (https://bugs.launchpad.net/ubuntu/+source/opensmtpd/+bug/1542684). # I guess it only works on OpenBSD. -listen on ens3 tls pki server_hostname.com filter { "rdns", "fcrdns" } +listen on ens3 tls pki server_hostname.com filter { check-rdns, check-fcrdns } # Since we have SSH access, we don't even need to setup SMTP credentials; # we can use a script that SSHs into our email server -- 2.45.2