Оповещение от Fail2ban

Copyright
Posts: 1
Joined: Thu Nov 07, 2019 4:02 pm

Оповещение от Fail2ban

Postby Copyright » Thu Nov 07, 2019 4:09 pm

Всем привет. Решил поставить на зимбру fail2ban. Все работает, кроме оповещения на почту. Не подскажите где ошибся

Пример jail.conf

[zimbra-account]
enabled = true
filter = zimbra
action = iptables-allports[name=Zimbra-account]
sendmail[name=Zimbra-account, dest=email@domain.com]
logpath = /opt/zimbra/log/mailbox.log
bantime = 600
maxretry = 5


Пример sendmail.conf

actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from `uname -n`
Date: `LC_ALL=C date +"%%a, %%d %%h %%Y %%T %%z"`
From: <sendername> <<sender>>
To: <dest>\n
Hi,\n
The IP <ip> has just been banned by Fail2Ban after
<failures> attempts against <name>.\n
Regards,\n
Fail2Ban" | /opt/zimbra/common/sbin/sendmail -f <sender> <dest>


Return to “Русский язык-фор”

Who is online

Users browsing this forum: No registered users and 2 guests