Page 1 of 1

custom failure message?

Posted: 25 Feb 2011, 22:14
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");
}

Re: custom failure message?

Posted: 01 Mar 2011, 10:01
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.

Re: custom failure message?

Posted: 04 Mar 2011, 03:02
by mtcarey
Thanks! Good to know I'm not missing something obvious. Great product, by the way. Keep up the good work!

Re: custom failure message?

Posted: 20 Mar 2011, 09:24
by chirpy
These have now been implemented in v5.19