Hello,
Currently we have a basic postfix setup to send mail from the local box.
This works:
> echo "message" | mail -s subject em...@email.com
i have a jail under jail.d called sshd2.local
> [DEFAULT]
> ignoreip = 127.0.0.1/8 <ip-ranges>
> destemail = <ad...@email.org>
> sendername = Fail2Ban
> mta = sendmail
> #mta = mail
> action = %(action_mwl)s
>
> [sshd2]
> enabled = true
> filter = sshd2
> port = 2222
> findtime = 3600
> logpath = /var/log/sshd2
> maxretry = 6
> # 24 hours
> bantime = 86400
I configured sendmail to work but i prefer using postfix. (dont want to
maintain multiple methods of sending mail)
when i set mta=mail fail2ban fails to start and i dont get much output:
Nov 04 10:44:28 h-txa-1ter-ecr-1 systemd[1]: Failed to start Fail2Ban
Service.
Nov 04 10:44:28 h-txa-1ter-ecr-1 systemd[1]: Unit fail2ban.service entered
failed state.
Nov 04 10:44:28 h-txa-1ter-ecr-1 systemd[1]: fail2ban.service failed.
Nov 04 10:44:28 h-txa-1ter-ecr-1 systemd[1]: fail2ban.service holdoff time
over, scheduling restart.
Nov 04 10:44:28 h-txa-1ter-ecr-1 systemd[1]: start request repeated too
quickly for fail2ban.service
Nov 04 10:44:28 h-txa-1ter-ecr-1 systemd[1]: Failed to start Fail2Ban
Service.
Nov 04 10:44:28 h-txa-1ter-ecr-1 systemd[1]: Unit fail2ban.service entered
failed state.
Nov 04 10:44:28 h-txa-1ter-ecr-1 systemd[1]: fail2ban.service failed.
why would it fail with mta=mail ? is there some configuration im missing in
postfix ?
CentOS Linux release 7.2.1511 (Core)
Fail2Ban v0.9.5
Thanks in advance,
Dave
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users