1

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...

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

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 {
    ...
    postrotate
        /etc/init.d/syslog restart
    endscript
}

3

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

I can confirm this resolved the issue for me.

4

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...