Topic: /var/log/fail2ban.log and dovecot.log empty

Have anyone encounter issue where log file for fail2ban and dovecot is empty?
I have to restart those 2 services to see some entry in the log file...
It happen maybe once a week...


Re: /var/log/fail2ban.log and dovecot.log empty

That's caused by logrotate.
Try to restart syslog service in your logrotate config file. e.g. in /etc/logrotate.d/maillog:

/var/log/maillog /var/log/iredapd*log {
        /etc/init.d/syslog restart


Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee


Re: /var/log/fail2ban.log and dovecot.log empty

I can confirm this resolved the issue for me.


Re: /var/log/fail2ban.log and dovecot.log empty

I know it is a old thread but the suggestion did not work for me...fail2ban and dovecot log file still show empty...

I have add "/etc/init.d/syslog restart" command to my /etc/logrotate.d/syslog...but still the same...