Move sender checks to rspamd to allow receiving authenticated emails from hosted domains
This commit is contained in:
6 files changed
+109
-9
No files matched your search
+1
-1
@@ -65,7 +65,7 @@ smtpd_sasl_type = dovecot
|
||||
smtpd_sasl_path = private/auth
|
||||
smtpd_client_restrictions = reject_unauth_pipelining
|
||||
smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:12340, permit_sasl_authenticated, check_recipient_access proxy:mysql:/etc/postfix/sql/mysql_tls_policy_in.cf
|
||||
smtpd_sender_restrictions = reject_sender_login_mismatch, check_sender_access inline:{{<> = REJECT}}, check_policy_service { unix:private/last-login, timeout=5s, default_action=DUNNO }, permit_sasl_authenticated
|
||||
smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch, check_sender_access inline:{{<> = REJECT}}, check_policy_service { unix:private/last-login, timeout=5s, default_action=DUNNO }, permit_sasl_authenticated
|
||||
smtpd_relay_restrictions = permit_sasl_authenticated, permit_auth_destination, reject_unauth_destination
|
||||
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/sql/mysql_virtual_auth_maps.cf
|
||||
|
||||
|
||||
@@ -11,12 +11,10 @@
|
||||
# ==========================================================================
|
||||
smtp inet n - n - 2 smtpd
|
||||
-o smtpd_sasl_auth_enable=no
|
||||
-o { smtpd_sender_restrictions = check_sender_access inline:{double-bounce@mail.danwin1210.de=OK} check_sender_access mysql:/etc/postfix/sql/mysql_virtual_domain_unauth_block.cf }
|
||||
last-login unix - n n - 0 spawn
|
||||
user=www-data argv=/usr/bin/php /var/www/mail/tools/postfix_last_login_policy.php
|
||||
26 inet n - n - 2 smtpd
|
||||
-o smtpd_sasl_auth_enable=no
|
||||
-o { smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/sql/mysql_virtual_domain_unauth_block.cf }
|
||||
-o smtpd_tls_security_level=may
|
||||
#smtp inet n - y - 1 postscreen
|
||||
#smtpd pass - - y - - smtpd
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
user = postfix_readonly
|
||||
password = YOUR_PASSWORD
|
||||
hosts = localhost
|
||||
dbname = postfix
|
||||
query = SELECT 'REJECT' FROM domain WHERE domain='%d' AND active = '1'
|
||||
|
||||
Reference in new issue
Block a user