Topic: Changing the Default MailDir Path
==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- 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?
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3 -> iRedAdmin-Pro-SQL-2.2.0
- Linux/BSD distribution name and version: Ubuntu
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
====
We are going to migrating from Qmail/VPopMail to iRedMail and this is our first use of iRedMail but so far we are enjoying it. We would like to use the more classic domain structure /domain.ltd/username/MailDir to better match the existing MailDir values we will be moving over. I have seen several references on the forum that describe how to do this, however, I must be missing something because we have been unable to get it to work properly and I was hoping for some additional guidance.
We have referenced older posts:
http://www.iredmail.org/forum/topic1441 … older.html
http://www.iredmail.org/forum/topic8853 … eters.html
We are using iRedAdmin-Pro-SQL-2.2.0 and have the path:
/opt/www/iRedAdmin-Pro-SQL-2.2.0/libs/default_settings.py
Our assumption is that is the default settings file. We then have a settings file located at:
/opt/www/iRedAdmin-Pro-SQL-2.2.0/libs/settings.py
and another at:
/opt/www/iRedAdmin-Pro-SQL-2.2.0/settings.py
We have tried adding the values:
MAILDIR_HASHED = False
MAILDIR_PREPEND_DOMAIN = True
MAILDIR_APPEND_TIMESTAMP = False
to both of these files but we have not noticed a change in newly created email MailDir locations. Is there something additional we need to do to enabled the use of the settings.py? Are we in the wrong location? We did try restarting various services and even the entire server to see if that would help but no matter what we did we still got the longer form MailDir paths.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.