1

Topic: Delete old mailboxes - file path variation throws error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

iRedMail Pro on CentOS install.  Steady upgrade version from previous years so some clients e-mail doesn't match the same path as new accounts since iRedMail Pro was added to mail system. 

Anyway, can remove those accounts files by hand but the script: /usr/bin/python /var/www/iredadmin/tools/delete_mailboxes.py
Still processes and thinks the files cannot be deleted, are present, etc.  Where is the value and/or method to reset those queued deletions as completed or stop attempts? 

Thank you.

----

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

2

Re: Delete old mailboxes - file path variation throws error

Dear @pbf343,

What's the original error message when run the "delete_mailboxes.py" script?

3 (edited by pbf343 2019-04-13 22:40:02)

Re: Delete old mailboxes - file path variation throws error

ZhangHuangbin wrote:

Dear @pbf343,

What's the original error message when run the "delete_mailboxes.py" script?

* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/domain_name.tld/user_name/), skip.
* <<< WARNING >>> Error message: ValueError("time data u'domain_name.tld/user_name' does not match format '%Y.%m.%d.%H.%M.%S'",).

Essentially left from old system -- the path/username.

4

Re: Delete old mailboxes - file path variation throws error

This is expected. you can remove it manually if you're absolutely sure this mailbox can be removed:

python /var/www/iredadmin/tools/delete_mailboxes.py --delete-without-timestamp

5

Re: Delete old mailboxes - file path variation throws error

Assume run as root user.  Appears to have removed the currently queued accounts to remove.  Thank you.