1

Topic: "No valid timestamp in maildir path" error message to postmaster

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Debian 8.6 (3.16.0-4-amd64)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no, with iRedAdmin
- Related log if you're reporting an issue:
====

Hi
I recently delete unwanted mailbox. Then in the address postmaster@mydomain.com began to receive messages on a daily basis:
----
* Delete old mailboxes (1 in total).
* <<< ERROR >>> No valid timestamp in maildir path (/var/vmail/vmail1/mydomain.com/n/./v/n.v.sap-2015.10.27.12.23.21/), too risky to remove this mailbox. skip.
---
When I saw them then I remove physically mailbox folder in the filesystem, but the messages do not stop. What have I done wrong? How do I clean the database to get rid of these messages?

----

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

2

Re: "No valid timestamp in maildir path" error message to postmaster

Seems a bug in file /opt/www/iredadmin/tools/delete_mailboxes.py. Please try steps below to fix it:

*) Find line below:

            ts = _dir[-20:-1]

*) Replace it by:

            ts = _dir[-19:]

*) Run it again with '--debug' option:

python /opt/www/iredadmin/tools/delete_mailboxes.py --debug

3

Re: "No valid timestamp in maildir path" error message to postmaster

After I edit /opt/www/iredadmin/tools/delete_mailboxes.py and execute "python /opt/www/iredadmin/tools/delete_mailboxes.py --debug" I got:

python /opt/www/iredadmin/tools/delete_mailboxes.py --debug
* Delete old mailboxes (1 in total).

It seems like all ok

Thank You!!