custom failure message?

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
mtcarey
Junior Member
Posts: 2
Joined: 25 Feb 2011, 21:35

custom failure message?

Post by mtcarey »

Not a big deal, but...

I have three custom rules in regex.custom.pm for Postfix handling, and the "custom failure message" in each does not seem to be used anywhere. The email notifications and lfd.log simply say "login failures....". Am I missing something?

My rules are as follows for anyone who needs them. They work great - the first one I got from this forum.

if (($lgfile eq $config{CUSTOM1_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","600");
}

if (($lgfile eq $config{CUSTOM1_LOG}) and ($line =~ /^\S+\s+\d+\s+\S+ \S+ postfix\/smtpd\[\d+\]: NOQUEUE:.*\[(\d+\.\d+\.\d+\.\d+)\]: 554 5\.7\.1*? Service unavailable; Client host \[(\d+\.\d+\.\d+\.\d+)\] blocked using.*/)) {
return ("RBL blocked from",$1,"myrblmatch","3","25","3600");
}

if (($lgfile eq $config{CUSTOM1_LOG}) and ($line =~ /^\S+\s+\d+\s+\S+ \S+ postfix\/smtpd\[\d+\]: NOQUEUE: reject: RCPT from.*\[(\d+\.\d+\.\d+\.\d+)\]: 554 5\.7\.1.*? Relay access denied.*/)) {
return ("Failed relay attempt from",$1,"myrelaymatch","3","25","1");
}
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Re: custom failure message?

Post by chirpy »

It's not coded to use them, which is an oversight. I'll add it to the development list to look into. Thank you for highlighting the issue.
mtcarey
Junior Member
Posts: 2
Joined: 25 Feb 2011, 21:35

Re: custom failure message?

Post by mtcarey »

Thanks! Good to know I'm not missing something obvious. Great product, by the way. Keep up the good work!
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Re: custom failure message?

Post by chirpy »

These have now been implemented in v5.19
Post Reply