Remove protocol state filter
This commit is contained in:
1 file changed
-1
@@ -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' ] )
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in new issue
Block a user