Univention Bugzilla – Bug 38328
Separate Cyrus logs from Postfix logs
Last modified: 2019-01-03 07:18:30 CET
Logs of both Cyrus and Postfix end up in /var/log/mail.* With Cyrus being very noisy (especially when used for authentication with Horde or OX) it is desirable to divert its output into a separate logfile.
Creating a file /etc/rsyslog.d/cyrus.conf with the following content diverts all Cyrus output into /var/log/cyrus.log: :programname,isequal,"cyrus" /var/log/cyrus.log :programname,isequal,"cyrus" ~
(In reply to Daniel Tröder from comment #1) > Creating a file /etc/rsyslog.d/cyrus.conf with the following content diverts > all Cyrus output into /var/log/cyrus.log: > > :programname,isequal,"cyrus" /var/log/cyrus.log > :programname,isequal,"cyrus" ~ I added a few more program names, because of existed log entries in mail.log from cyrus processes. My /etc/rsyslog.d/cyrus.conf: :programname,isequal,"cyrus" /var/log/cyrus.log :programname,isequal,"master" /var/log/cyrus.log :programname,isequal,"ctl_cyrusdb" /var/log/cyrus.log :programname,isequal,"imaps" /var/log/cyrus.log :programname,isequal,"imap" /var/log/cyrus.log :programname,isequal,"cyrus" ~ :programname,isequal,"master" ~ :programname,isequal,"ctl_cyrusdb" ~ :programname,isequal,"imaps" ~ :programname,isequal,"imap" ~
I also added a config for logrotate of this new logfile. Creating a file /etc/logrotate.d/cyrus with the following content: /var/log/cyrus.log { weekly rotate 12 create 640 root adm compress missingok notifempty delaycompress sharedscripts postrotate invoke-rc.d cyrus-imapd reload > /dev/null endscript }
There is a Customer ID set so I set the flag "Enterprise Customer affected".
This issue has been filled against UCS 4.0. The maintenance with bug and security fixes for UCS 4.0 has ended on 31st of May 2016. Customers still on UCS 4.0 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.