Thank you for replying Tom
I was not aware that SendMail and postfix.sendmail were two different
things. Thanks for the tip.
I removed all of SendMail packages and made sure postfix and sendmail are
installed.
Postfix is already configured to be able to send mail.
I also noticed that fail2ban-mail package was not installed, so i installed
that too to see if the service would fail when "mta=mail".
Fortunately the fail2ban service restarted properly with mta=mail and i was
able to receive emails.
So that was the issue fail2ban-mail was not installed
Thanks!
On Sun, Nov 6, 2016 at 5:46 AM, Tom Hendrikx <t...@whyscream.net> wrote:
> On 04-11-16 15:47, Dave Macias wrote:
> > 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 <mailto:
> em...@email.com>
> >
> > i have a jail under jail.d called sshd2.local
> >
> >> [DEFAULT]
> >> ignoreip = 127.0.0.1/8 <http://127.0.0.1/8> <ip-ranges>
> >> destemail = <ad...@email.org <mailto: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:
>
> The config option 'mta' is a misnomer, since it does not set an actual
> MTA to use, but a commandline tool that provides email sending service.
>
> Both SendMail (the mta, not the spelling) and postfix provide a
> 'sendmail' binary, and have compatible commandline interfaces. the
> 'mail' command is a different binary, provided by a typical non-mta
> package (on ubuntu: mailutils).
>
> If you want to use postfix, remove all of SendMail, install postfix, and
> check that you have a 'sendmail' binary (e.g.: sudo which sendmail).
> Then configure fail2ban to use 'sendmail'.
>
> KInd regards,
> Tom
>
>
> ------------------------------------------------------------
> ------------------
> 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
>
>
------------------------------------------------------------------------------
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