Remove protocol state filter

This commit is contained in:
danwin1210 committed 2026-10-17 23:39:17 +02:00
1 parent 3106dc2003
commit 0392366a77
1 file changed
-1
-1
View File
@@ -23,7 +23,6 @@ function handle_postfix_policy_request(): bool
if ( if (
( $attributes[ 'request' ] ?? '' ) === 'smtpd_access_policy' ( $attributes[ 'request' ] ?? '' ) === 'smtpd_access_policy'
&& ( $attributes[ 'protocol_state' ] ?? '' ) === 'MAIL'
&& is_string( $attributes[ 'sasl_username' ] ?? null ) && is_string( $attributes[ 'sasl_username' ] ?? null )
&& preg_match( '/^[^@\s]+@[^@\s]+$/D', $attributes[ 'sasl_username' ] ) && preg_match( '/^[^@\s]+@[^@\s]+$/D', $attributes[ 'sasl_username' ] )
) { ) {