1

Topic: Unable to change mailbox directory structer..

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.1
- Deployed with iRedMail Easy or the downloadable installer = Download Installer
- Linux/BSD distribution name and version: Ubuntu !8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- 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.
====
Hello,

i am instaling latest version of iredadmin which is 1.3.1 with ldap backend, everything works fine, i am able to send / receive mails, can able to search users attributes and user with ldapsearch command
But how can i  change the maildirectory structure..currently it is like vmail1/example.com/h/i/t/hiten-2020.07.16.09.38.07/Maildir/, i want to be like vmail1/example.com/hiten/
How can i do that,

Actually i have searched for online forums as well, tried putting entry in settings.py, but unable to change mail directory path.

Please Help Me...!!!!!!

----

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

2

Re: Unable to change mailbox directory structer..

You need to update the LDAP attribute "homeDirectory" of this user with tool like "ldapvi" (command line) or "phpldapadmin" (web).

3

Re: Unable to change mailbox directory structer..

Thank you for your reply.

I am able to change the existing user mail directory.

But if i create a new user, mail directory of it getting created like /t/e/s/test format only, Where i can change the default mailox directory structure, so every user will get created with required mail directory format only

4

Re: Unable to change mailbox directory structer..

FYI: https://docs.iredmail.org/iredadmin-pro … .path.html

It’s strongly recommended to read our document site:
https://docs.iredmail.org/

5

Re: Unable to change mailbox directory structer..

Thank you Zhang,

I have get this working by putting below values in /opt/www/iredadmin/settings.py  file.

MAILDIR_HASHED = False
MAILDIR_PREPEND_DOMAIN = True
MAILDIR_APPEND_TIMESTAMP = False

It requires to restart iredmail, nginx and uwsgi service.

ZhangHuangbin wrote:

FYI: https://docs.iredmail.org/iredadmin-pro … .path.html

It’s strongly recommended to read our document site:
https://docs.iredmail.org/

6

Re: Unable to change mailbox directory structer..

hits wrote:

It requires to restart iredmail, nginx and uwsgi service.

Restarting only "iredadmin" service is enough, no nginx or uwsgi.