Topic: Errors with delete mailboxes.
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.7 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04.6 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi there,
I'm having issues with the delete_mailboxes.py script.
When we installed our current iRdmail server, the script was not configured in the crontab, so I had to do it manually, but the script does not seem to be removing mailboxes from the server.
This is what I have in a file in the cron/daily folder:
/usr/bin/python3 /opt/www/iredadmin/tools/delete_mailboxes.py
I tried to run the script manually with the --debug parameter to see if I got error messages and this is the output:
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/bv.ind.br/c/o/m/comercial/), skip.
* <<< WARNING >>> Error message: ValueError("time data '.br/c/o/m/comercial' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/gruporiviera.com.br/f/e/l/felipe/), skip.
* <<< WARNING >>> Error message: ValueError("time data 'com.br/f/e/l/felipe' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/yukaline.com.br/c/o/m/comercial3/), skip.
* <<< WARNING >>> Error message: ValueError("time data 'br/c/o/m/comercial3' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/yukaline.com.br/c/o/m/comercial4/), skip.
* <<< WARNING >>> Error message: ValueError("time data 'br/c/o/m/comercial4' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/yukaline.com.br/c/o/m/comercial5/), skip.
* <<< WARNING >>> Error message: ValueError("time data 'br/c/o/m/comercial5' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/yukaline.com.br/g/l/a/gladis/), skip.
* <<< WARNING >>> Error message: ValueError("time data 'com.br/g/l/a/gladis' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/yukaline.com.br/l/u/a/luan/), skip.
* <<< WARNING >>> Error message: ValueError("time data 'e.com.br/l/u/a/luan' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/yukaline.com.br/a/t/i/ativacao/), skip.
* <<< WARNING >>> Error message: ValueError("time data 'm.br/a/t/i/ativacao' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/yukaline.com.br/s/u/p/suporte/), skip.
* <<< WARNING >>> Error message: ValueError("time data 'om.br/s/u/p/suporte' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/yukaline.com.br/c/o/m/comercial/), skip.
* <<< WARNING >>> Error message: ValueError("time data '.br/c/o/m/comercial' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/yukaline.com.br/t/e/c/tecnico/), skip.
* <<< WARNING >>> Error message: ValueError("time data 'om.br/t/e/c/tecnico' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/gruporiviera.com.br/r/o/m/romulo/), skip.
* <<< WARNING >>> Error message: ValueError("time data 'com.br/r/o/m/romulo' does not match format '%Y.%m.%d.%H.%M.%S'").
* <<< WARNING >>> Invalid or missing timestamp in maildir path (/var/vmail/vmail1/ciaplan.com/e/n/g/engenharia/), skip.
* <<< WARNING >>> Error message: ValueError("time data 'om/e/n/g/engenharia' does not match format '%Y.%m.%d.%H.%M.%S'").
The comments within the script say:
# With default iRedMail settings, maildir path will contain a timestamp
# like this: <domain.com>/u/s/e/username-2016.08.17.09.53.03/
# (2016.08.17.09.53.03 is the timestamp), this way all created maildir
# paths are unique, even if you removed the user and recreate it with
# same mail address.
But this is not how the maildir folders are created on our server.
Any idea why I'm getting this and how to fix it?
Thanks,
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.