1

Topic: Possible to delete user and mail dir immediately?

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

Dear Sirs,
using the iRedAdmin Web, I tried to delete a mail user. At the delete selection, there is no way to delete the mail box (user's mail dir) immediately. The soonest that is permitted is 1 day. Is there any way to change this and to have or to add immediately deletion of mailbox?
Thanks.

----

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

2

Re: Possible to delete user and mail dir immediately?

This was answered in Telegram chat group, but let me answer here again to leave some info for further users.

- iRedAdmin(-Pro) is running as system user "iredadmin", it doesn't have required privilege to remove mailboxes which are owned by user/group "vmail:vmail" with permission 0700. So it stores the maildir path and schedules the removal date in SQL database.
- There's a daily cron job which runs script "tools/delete_mailboxes.sh" in iRedAdmin(-Pro) directory to check scheduled removal every night, and actually remove scheduled ones.