Topic: Fail2ban-email-notifications
==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Ubuntu 14.04
- Related log if you're reporting an issue:
====
Hi,
I just configured Fail2ban to send me email-notifications. It is working great for the services for which I configured fail2ban (owncloud and wordpress) but it doesn't work for roundcube and other services installed and configured by iredmail. Here is my jail.conf:
# Refer to /etc/fail2ban/jail.conf for more examples.
[DEFAULT]
maxretry = 3
# attention: time is in seconds - the value of 3600 means ONE hour
bantime = 3600
ignoreip = 127.0.0.1 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
action = %(action_mwl)s
destemail = postmaster@example.com
[ssh-iredmail]
enabled = true
filter = sshd
action = iptables[name=ssh, port="ssh", protocol=tcp]
# sendmail-whois[name=ssh, dest=root, sender=fail2ban@mail.com]
logpath = /var/log/auth.log
[roundcube-iredmail]
enabled = true
filter = roundcube.iredmail
action = iptables-multiport[name=roundcube, port="http,https,smtp,submission,pop3,pop3s,imap,imaps,sieve", protocol=tcp]
logpath = /var/log/mail.log
findtime = 3600
[dovecot-iredmail]
enabled = true
filter = dovecot.iredmail
action = iptables-multiport[name=dovecot, port="http,https,smtp,submission,pop3,pop3s,imap,imaps,sieve", protocol=tcp]
logpath = /var/log/dovecot.log
findtime = 300
[postfix-iredmail]
enabled = true
filter = postfix.iredmail
action = iptables-multiport[name=postfix, port="http,https,smtp,submission,pop3,pop3s,imap,imaps,sieve", protocol=tcp]
# sendmail[name=Postfix, dest=you@mail.com]
logpath = /var/log/mail.log
[owncloud]
enabled = true
filter = owncloud
port = 80,443
maxretry = 3
logpath = /var/log/syslog
[wordpress]
enabled = true
filter = wordpress
port = 80,443
logpath = /var/log/auth.log
Email-notifications for owncloud and wordpress are sent to the provided email-address.
Who can help me? What do I have to change to enable email-notifications for the other services as well?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.