Fail2ban - jail 'postfix' does not exist

Madd00x

Member
Joined
Jun 25, 2023
Messages
33
Reaction score
8
Credits
374
Hello, here my jail.conf:
[postfix]
filter = postfix[mode=auth]
enabled = true
port = smtp,submission,imap,imaps,pop3,pop3s
logpath = %(postfix_log)s
banaction = nftables
banaction_allports = nftables[type=allports]
chain = input



[postfix-rbl]
enabled = true
filter = postfix[mode=rbl]
port = smtp,submission,imap,imaps,pop3,pop3s
banaction = nftables
banaction_allports = nftables[type=allports]
chain = input

[postfix-sasl]
enabled = true
filter = postfix[mode=auth]
port = smtp,submission,imap,imaps,pop3,pop3s
maxretry = 2
bantime = 12h
bantime.increment = true
bantime.factor = 2
bantime.maxtime = 5w
action = %(action_)s
banaction = nftables
banaction_allports = nftables[type=allports]
chain = input

But something went wrong ;(
sudo fail2ban-client restart postfix
2025-10-13 09:03:47,077 fail2ban [10372]: ERROR NOK: ('postfix',)
Sorry but the jail 'postfix' does not exist
 


Hello, here my jail.conf:
[postfix]
filter = postfix[mode=auth]
enabled = true
port = smtp,submission,imap,imaps,pop3,pop3s
logpath = %(postfix_log)s
banaction = nftables
banaction_allports = nftables[type=allports]
chain = input



[postfix-rbl]
enabled = true
filter = postfix[mode=rbl]
port = smtp,submission,imap,imaps,pop3,pop3s
banaction = nftables
banaction_allports = nftables[type=allports]
chain = input

[postfix-sasl]
enabled = true
filter = postfix[mode=auth]
port = smtp,submission,imap,imaps,pop3,pop3s
maxretry = 2
bantime = 12h
bantime.increment = true
bantime.factor = 2
bantime.maxtime = 5w
action = %(action_)s
banaction = nftables
banaction_allports = nftables[type=allports]
chain = input

But something went wrong ;(
sudo fail2ban-client restart postfix
2025-10-13 09:03:47,077 fail2ban [10372]: ERROR NOK: ('postfix',)
Sorry but the jail 'postfix' does not exist
 
sudo fail2ban-client restart postfix
lol! my wrong, is not the right command ;)

ystemctl status fail2ban
● fail2ban.service - Fail2Ban Service
Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled; preset: enabled)
Active: active (running) since Mon 2025-10-13 11:32:56 CEST; 3s ago
Invocation: f5f16e74a9d4408b8fafcf61a27f6f59
Docs: man:fail2ban(1)
Main PID: 13167 (fail2ban-server)
Tasks: 11 (limit: 37843)
Memory: 20.8M (peak: 22.1M)
CPU: 120ms
CGroup: /system.slice/fail2ban.service
└─13167 /usr/bin/python3 /usr/bin/fail2ban-server -xf start
 


Follow Linux.org

Members online


Top