Page 1 of 1

filter with postfix

Posted: 18 Jan 2023, 08:41
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

Re: filter with postfix

Posted: 18 Jan 2023, 15:28
by Sergio
Please paste a LOG line from CUSTOM2_LOG to test the rule that you are showing.

Sergio