Hello All,

 

I wanted to see if there was a way to have the “same” jail ban a different amount of retries.

What I mean is, this is my postfix config:

 

[postfix]    

enabled  = true

port     = smtp

filter   = postfix

logpath  = /var/log/maillog

maxretry = 2

bantime  = 86400

 

After 2 retries things get bounced, but I want to have one where lets say postmaster spam comes in, and if you send me 5 postmaster messages in a row, I will reject you ( because 2 isn’t unreasonable ).


I know I can create a second entry like

[postfix2]    

enabled  = true

port     = smtp

filter   = postfix

logpath  = /var/log/maillog

maxretry = 5

bantime  = 86400

 

But I don’t want to have to read the same exact log file 2 times simultaneously.


Any suggestions?

 

 

 

Thanks!

Jack