1

Topic: Dovecot LOgs

Hi,


We have iredmail version
- iRedMail version (check /etc/iredmail-release)
==> 0.9.9 and iRedAdmin-Pro 4.4 (MySQL)

- iRedMail version (check /etc/iredmail-release)
==> 1.3.2 and iRedAdmin-Pro 4.7 (MySQL)


In iRedmail version 0.9.9 if any user has deleted email from webmail or outlook then we are not getting compleate log information, whereas if any user under iRedmail version 1.3.2 delete the email getting compleate information

Following are the logs for ref.

Log from iRedmail version 0.9.9

################################

Oct 13 22:52:03 ns1 dovecot: imap-login: Login: user=<test@abc.com>, method=PLAIN, rip=x.x.x.x, lip=x.x.x.x, mpid=21605, TLS, session=<rER0v+3qJ+ZvW1AR>

################################

Log from iRedmail version 1.3.2

################################

Oct 13 17:15:53 ns1 dovecot: imap(test@xyz.com): expunge: box=INBOX, uid=50, msgid=<151e6e78-f79b-af21-f01f-73696b225b3c@abc.com>, size=3643, from="test@abc.com" <test@abc.com>, subject=Test, flags=(\Seen \Recent NonJunk)

################################


Hereby attach both version dovecot config files



Please suggest what changes needs to be done in 0.9.9 iredmail version.

Thanks
Sunil

Post's attachments

0.9.9_iRedmail_dovecot.conf 13.69 kb, file has never been downloaded. 

1.3.3_iredmail_dovecot.conf 13.66 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

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

2

Re: Dovecot LOgs

Add mail_log_events and mail_log_fields in Dovecot config file, inside `plugin {}` block:

plugin {
    # ... omit other lines here ...

    # Events to log. `autoexpunge` is included in `expunge`
    # Defined in [url]https://github.com/dovecot/core/blob/master/src/plugins/mail-log/mail-log-plugin.c[/url]
    mail_log_events = delete undelete expunge copy save mailbox_create mailbox_delete mailbox_rename
    mail_log_fields = uid box msgid size from subject flags
}

3

Re: Dovecot LOgs

ZhangHuangbin wrote:

Add mail_log_events and mail_log_fields in Dovecot config file, inside `plugin {}` block:

plugin {
    # ... omit other lines here ...

    # Events to log. `autoexpunge` is included in `expunge`
    # Defined in [url]https://github.com/dovecot/core/blob/master/src/plugins/mail-log/mail-log-plugin.c[/url]
    mail_log_events = delete undelete expunge copy save mailbox_create mailbox_delete mailbox_rename
    mail_log_fields = uid box msgid size from subject flags
}

Hi,

This i have already try but not getting result.

Thanks
Sunil

4

Re: Dovecot LOgs

I guess your linux distribution release is old and you're running old Dovecot package which doesn't support all events in "mail_log_events".