Enhancement #2841

Dovecot: separate log files for IMAP

Added by Davide Principi almost 7 years ago. Updated about 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-mail-server
Target version:v6.5
Resolution: NEEDINFO:No

Description

Now postfix, amavis, dovecot daemons log everything to the mail facility and messages end up into /var/log/maillog.

We could reduce the log flooding by moving IMAP and LMTP/delivery messages to separate files.


Related issues

Related to NethServer 6 - Enhancement #2784: Differentiate Postfix syslog_name parameters CLOSED
Related to NethServer 6 - Enhancement #3228: Separate POP log file CLOSED

Associated revisions

Revision f4bf2d04
Added by Davide Principi almost 7 years ago

Put dovecot IMAP messages into a separate log file. Refs #2841

Revision 070b6f2f
Added by Davide Principi almost 7 years ago

Put dovecot IMAP messages into a separate log file. Refs #2841

Revision 724cda44
Added by Davide Principi almost 7 years ago

Put dovecot IMAP messages into a separate log file. Refs #2841

Revision 97e7c88e
Added by Giacomo Sanchietti almost 7 years ago

rsyslog config: stop processing after imap events. Refs #2841

History

#1 Updated by Davide Principi almost 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

In branch b2750

#2 Updated by Davide Principi almost 7 years ago

#3 Updated by Davide Principi almost 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Edit:

LMTP messages retained to /var/log/maillog, to ease debugging when delivery process involves sieve filters.

Test case

Syslog messages from "dovecot" regarding IMAP connections must now be written to /var/log/imap.
Check logrotate -f /etc/logrotate.conf rotates also the new log and HUPes syslogd.

#4 Updated by Davide Principi almost 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-mail-common-1.3.3-1.19git5aeec2c.ns6.noarch.rpm
nethserver-mail-server-1.7.0-1.9git836d38e.ns6.noarch.rpm
nethserver-mail-filter-1.1.6-5.0git2ea5d3e8.ns6.noarch.rpm

#5 Updated by Giacomo Sanchietti almost 7 years ago

  • Assignee set to Giacomo Sanchietti

#6 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 20

Test case

Verification FAILED.

Syslog configuration is in place but is not applied: we need to add Syslog restart inside the nethserver-mail-server-update event.

After syslog restart IMAP login/logout messages are logged both in /var/log/imap and /var/log/maillog.
Logrotate should correctly work.

#7 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#8 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#9 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-mail-server-1.7.0-1.10git97e7c88.ns6.noarch.rpm

See previous test case.

#10 Updated by Davide Principi almost 7 years ago

  • Assignee set to Davide Principi

#11 Updated by Davide Principi almost 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 70 to 90

VERIFIED

As expected, only dovecot imap messages are sent to /var/log/imap.

#12 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-mail-server-1.8.0-1.ns6.noarch.rpm
  • nethserver-mail-common-1.4.0-1.ns6.noarch.rpm
  • nethserver-mail-filter-1.2.0-1.ns6.noarch.rpm
New documentation:

#13 Updated by Davide Principi about 6 years ago

  • Subject changed from Dovecot: separate log files for IMAP and LMTP/delivery to Dovecot: separate log files for IMAP

#14 Updated by Davide Principi about 6 years ago

  • Description updated (diff)

Edited subject/description according to the released implementation

#15 Updated by Davide Principi about 6 years ago

Also available in: Atom PDF