1

Topic: Path to maildir users

==== ==== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: FreeBSD 9.1-RELEASE
- Related log if you're reporting an issue:
====
May I change path to maildir users?
Now it /var/vmail/vmail1/domain.ltd/p/o/s/postmaster-%date%
I want the path /var/vmail/vmail1/domain.ltd/postmaster/
Where it may  changed?

2

Re: Path to maildir users

It depends on how you create mail accounts. With iRedAdmin (either open source edition or iRedAdmin-Pro), you can change the maildir style with below settings in file "libs/settings.py" under iRedAdmin directory:

###################################
# Maildir related.
#

#It's RECOMMEND for better performance. Samples:
# - hashed: domain.ltd/u/s/e/username-2009.09.04.12.05.33/
# - non-hashed: domain.ltd/username-2009.09.04.12.05.33/
MAILDIR_HASHED = True

# Prepend domain name in path. Samples:
# - with domain name: domain.ltd/username/
# - without: username/
MAILDIR_PREPEND_DOMAIN = True

# Append timestamp in path. Samples:
# - with timestamp: domain.ltd/username-2010.12.20.13.13.33/
# - without timestamp: domain.ltd/username/
MAILDIR_APPEND_TIMESTAMP = True

NOTE: It's recommended to write your custom settings in file "libs/settings_local.py" (doesn't exist, create it manually please), so that you don't need to sync "libs/settings.py" after upgraded iRedAdmin, you can simply copy "libs/settings_local.py" instead.

For example, simply write below setting in "libs/settings_local.py" to override settings in "libs/settings.py":

MAILDIR_APPEND_TIMESTAMP = False

3

Re: Path to maildir users

Ok, thanks.