• 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

Delete unused mailboxes

B

BenjS

Guest
Hello everybody

Is there any possibility to check if some mailboxes wheren't used since N days? To prevent all of this zombie mailboxes, I want to check the logins and if a mailbox doesn't have any login in the last e.g. 180 days, I want remove it or simliar.

Any ideas?

Cheers,
Benjamin
 
Not sure that it is possible somehow to find data of mailboxes which are not used since N days. There isn't such info in database, for example.
You can find all mailboxes with following SQL query:

select concat(mail.mail_name,"@",domains.name) as address from mail,domains,accounts where mail.dom_id=domains.id and mail.account_id=accounts.id order by address;
 
Back
Top