• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question can i see who deleted mails?

pauls1919

New Pleskian
Server operating system version
CloudLinux 8.4 x86_64
Plesk version and microupdate number
Plesk Obsidian 18.0.44.3
My client is complaining about mails being deleted after 14 days. Can i see on some logs what ip or device deletes mails?
 
Most likely, your client is using POP3 to fetch the mails, and in the email client, there is a POP3 setting to delete mails after 14 days.
 
Most likely, your client is using POP3 to fetch the mails, and in the email client, there is a POP3 setting to delete mails after 14 days.
i thought about it but on what log is mentioned from what ip mails were deleted? so i can show customer that he deleted them.
 
By default, Dovecot does not log mail operations (move, delete etc.).
But it is possible to log those things using the mail logger plugin of Dovecot:

You can create your custom Dovecot configuration as explained here:
Customized Dovecot configuration file /etc/dovecot/dovecot.conf is overwritten after Plesk updates - Support Cases from Plesk Knowledge Base

Example file: /etc/dovecot/conf.d/99-custom-logging.conf:
Code:
# Enable the plugin globally for all services
mail_plugins = $mail_plugins notify mail_log

plugin {
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size from
}

Then restart or reload dovecot.

Disclaimer: Do this at your own risk!
 
Back
Top