From b657e768c9f9a9773b7767b286d1b16603ecd4ae Mon Sep 17 00:00:00 2001
From: Luke Smith <luke@lukesmith.xyz>
Date: Wed, 28 Sep 2022 09:36:26 -0400
Subject: some anti-spam measures

---
 emailwiz.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/emailwiz.sh b/emailwiz.sh
index 0fdd8a4..375131d 100755
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -299,6 +299,10 @@ postconf -e 'milter_protocol = 6'
 postconf -e 'smtpd_milters = inet:localhost:12301'
 postconf -e 'non_smtpd_milters = inet:localhost:12301'
 postconf -e 'mailbox_command = /usr/lib/dovecot/deliver'
+postconf -e 'smtpd_helo_required = yes'
+postconf -e 'smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname'
+postconf -e 'smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_sender_login_mismatch, reject_unknown_reverse_client_hostname, reject_unknown_sender_domain'
+
 
 # A fix for "Opendkim won't start: can't open PID file?", as specified here: https://serverfault.com/a/847442
 /lib/opendkim/opendkim.service.generate
-- 
cgit v1.2.3