From 0392366a774fad2b6aa26ca5592850dcc7286a85 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sat, 17 Oct 2026 23:39:17 +0200 Subject: [PATCH] Remove protocol state filter --- tools/postfix_last_login_policy.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/postfix_last_login_policy.php b/tools/postfix_last_login_policy.php index 8cf29ce..ded7ab8 100644 --- a/tools/postfix_last_login_policy.php +++ b/tools/postfix_last_login_policy.php @@ -23,7 +23,6 @@ function handle_postfix_policy_request(): bool if ( ( $attributes[ 'request' ] ?? '' ) === 'smtpd_access_policy' - && ( $attributes[ 'protocol_state' ] ?? '' ) === 'MAIL' && is_string( $attributes[ 'sasl_username' ] ?? null ) && preg_match( '/^[^@\s]+@[^@\s]+$/D', $attributes[ 'sasl_username' ] ) ) {