From: Alex <mys...@gm...> - 2024-06-17 02:04:17
|
> > BTW, I can't crack it for the moment. >> OK so this isn't going to be quite so neat. You need to add a line: >> >> ^RCPT from [^[]*\[<HOST>\]%(_port)s:? 550 5\.5\.1 Protocol error; >> >> to the mdre-normal section. Generally the recommended way is to create a >> postfix.local file, but this would need to contain: >> > > This got mangled by gmail, but I was able to copy the postfix.conf to > postfix.local and make it somewhat resemble what you pasted, and it appears > to work. > Actually, it works with fail2ban-regex but isn't catching them from the live logs. Here's what I have in my jail.conf: [postfix] filter = postfix maxretry = 1 bantime = 48h enabled = true mode = normal I've also attached my whole postfix.conf here, just in case. |