filter with postfix

Post Reply
MisterM75
Junior Member
Posts: 1
Joined: 18 Jan 2023, 08:29

filter with postfix

Post by MisterM75 »

Hello
I am trying to filter incoming messages via CSF
When I apply this:
if (($lgfile eq $config{CUSTOM2_LOG}) and ($line =~ /^\S+\s+\d+\s+\S+ \S+ postfix\/smtpd\[\d+\]: warning:.*\[(\d+\.\d+\.\d+\.\d+)\]: SASL [A-Z]*? authentication failed/)) {
return ("Failed SASL login from",$1,"mysaslmatch","3","25","1");
}
This does not break, I do not see the IP blocked in the management.
Any idea?
Mz
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: filter with postfix

Post by Sergio »

Please paste a LOG line from CUSTOM2_LOG to test the rule that you are showing.

Sergio
Post Reply