You are not logged in.

#1 2013-08-28 21:59:06

danxx
Member
Registered: 2013-08-28
Posts: 1

Newbie Setup - Fail2ban & MSMTP

Hi Guys

I've installed arch a couple of days ago and so far so good until today...

I installed msmtp instead of ssmtp due to the lack of development now, that's configured and can send mail through my gmail account.  I then installed fail2ban and logwatch to monitor my ssh port for bruteforce and daily reports etc.

When i execute the logwatch pl i'm getting unmatched errors for fail2ban:

2013-08-27 09:38:04,530 fail2ban.jail   : INFO   Jail 'ssh-iptables' uses pyinotify
2013-08-27 09:38:04,694 fail2ban.jail   : INFO   Initiated 'pyinotify' backend
2013-08-27 09:38:05,194 fail2ban.actions.action: ERROR  printf %b "Subject: [Fail2Ban] SSH: started
2013-08-27 09:38:05,197 fail2ban.actions.action: INFO   HINT on 7f00: "Command not found".  Make sure that all commands in 'printf %b "Subject: [Fail2Ban] SSH: started\nDate: `LC_TIME=C date -u +"%a, %d %h %Y %T +0000"`\nFrom: Fail2Ban <fail2ban@example.com>\nTo: you@example.com\\n\nHi,\\n\nThe jail SSH has been started successfully.\\n\nRegards,\\n\nFail2Ban" | /usr/bin/sendmail -f fail2ban@example.com you@example.com' are in the PATH of fail2ban-server process (grep -a PATH= /proc/`pidof -x fail2ban-server`/environ). You may want to start "fail2ban-server -f" separately, initiate it with "fail2ban-client reload" in another shell session and observe if additional informative error messages appear in the terminals.
2013-08-27 09:57:08,192 fail2ban.server : INFO   Stopping all jails

I'm not 100% sure what's causing this but I suspect its something to do with the sendmail issue? I've gone through the arch wiki guide for setting up fail2ban and msmtp, changing my /etc/mail.rc file to point at msmtp instead of send mail.

Checking google and not having much luck so has anyone ever seen this before?

Thanks in advance

Dan

Offline

Board footer

Powered by FluxBB