Does (or can) the ability to use expansion variables in Dovecot's log_path exist? ie: log_path = /var/log/dovecot/dovecot-%Y%m%d -- Robert Blayzor INOC, LLC rblayzor at inoc.net http://www.inoc.net/~rblayzor/
On 5.12.2012, at 17.24, Robert Blayzor wrote:> Does (or can) the ability to use expansion variables in Dovecot's log_path exist? > > ie: > > log_path = /var/log/dovecot/dovecot-%Y%m%dNot currently. It would be possible to make it work, but it would require that Dovecot gets SIGHUPed every midnight to get the configuration reloaded. But you could already do that with logrotate, which I think is a better solution anyway.
Robert Blayzor wrote:> Does (or can) the ability to use expansion variables in Dovecot's log_path exist? > log_path = /var/log/dovecot/dovecot-%Y%m%dDovecot is able to send logs to a (configurable) syslog_facility. Rsyslog logging daemon is able to write different files depending on time. There are available properties like $YEAR $MONTH $DAY $HOUR $MINUTE in rsyslog. Regards Daniel -- https://plus.google.com/103021802792276734820