Add login tracking to smtp sessions
This commit is contained in:
4 files changed
+54
-2
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}}, permit_sasl_authenticated
|
||||
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_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
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
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 }
|
||||
@@ -129,4 +131,3 @@ scache unix - - y - 1 scache
|
||||
#mailman unix - n n - - pipe
|
||||
# flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
|
||||
# ${nexthop} ${user}
|
||||
|
||||
Reference in new issue
Block a user