]> git.ekhem.eu.org Git - server.git/commitdiff
[fail2ban] Notify through email about violations.
authorJakub Czajka <jakub@ekhem.eu.org>
Sun, 7 Jan 2024 09:50:38 +0000 (10:50 +0100)
committerJakub Czajka <jakub@ekhem.eu.org>
Sun, 7 Jan 2024 09:50:38 +0000 (10:50 +0100)
fail2ban/jail.local

index 8aca5ca5ab56257a4388b0d72d6cb0100f107834..4ff380a2e5e4217b22117f77d00f1be3eb35cf47 100644 (file)
@@ -181,10 +181,10 @@ filter = %(__name__)s[mode=%(mode)s]
 
 # Destination email address used solely for the interpolations in
 # jail.{conf,local,d/*} configuration files.
-destemail = root@localhost
+destemail = server@${private_domain}
 
 # Sender email address used solely for some actions
-sender = root@<fq-hostname>
+sender = server@${private_domain}
 
 # E-mail action. Since 0.8.1 Fail2Ban uses sendmail MTA for the
 # mailing. Change mta configuration parameter to mail if you want to