On 24-11-16 19:06, dan...@msw.it wrote:
> Hi friends,
> on my first VPS Debian Jessie and Postfix/Dovecot, and
> I've found this error on root mail:
> 
> 
> /etc/cron.daily/logrotate:
> ERROR  Unable to contact server. Is it running?
> error: error running non-shared postrotate script for 
> /var/log/fail2ban.log of '/var/log/fail2ban.log '
> run-parts: /etc/cron.daily/logrotate exited with return code 1
> 
> 
> 
> Then if I go to /var/log/fail2ban.log it's empty, and only 
> /var/log/fail2ban.log.1 contains content, but the last of nine days ago.
> so I checked if the fail2ban service is active:
> 
> service fail2ban status
> ● fail2ban.service - LSB: Start/stop fail2ban
>     Loaded: loaded (/etc/init.d/fail2ban)
>     Active: active (exited) since mar 2016-11-15 23:10:13 CET; 1 weeks 1 
> days ago
>    Process: 7955 ExecStop=/etc/init.d/fail2ban stop (code=exited, 
> status=0/SUCCESS)
>    Process: 7963 ExecStart=/etc/init.d/fail2ban start (code=exited, 
> status=0/SUCCESS)
> 
> nov 15 23:10:13 server fail2ban[7963]: Starting authentication failure 
> monitor: fail2banERROR  Failed during configuration: Bad value 
> substitution:
> nov 15 23:10:13 server fail2ban[7963]: section: [postfix-disc]
> nov 15 23:10:13 server fail2ban[7963]: option : logpath
> nov 15 23:10:13 server fail2ban[7963]: key    : syslog_mail
> nov 15 23:10:13 server fail2ban[7963]: rawval :
> nov 15 23:10:13 server fail2ban[7963]: failed!
> 
> 
> Could you kindly tell me what caused and possibly how to remedy the 
> problem? :-)
> 

You made a typo in the config file, which made fail2ban fail on an
earlier restart. The logrotate just tripped over the fact that f2b
wasn't running some days later.

Please show us your jail and filter config for the postfix-disc jail,
but my first guess would be that you setup the jail using

logfile=%(syslog_mail)s

but the variable 'syslog_mail' is not defined anywhere.

Kind regards,
        Tom

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to