1

Topic: user maildir path

if I want the user maildir to be defaulted to /var/vmail/vmail1/abc.com/john.ng + timestamp instead of the /var/vmail/vmail1/abc.com/j/o/h/john.ng + timestamp, how should i go about doing so?

----

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

2

Re: user maildir path

If you create mail accounts with iRedAdmin (either open source edition or iRedAdmin-Pro), please modify below settings in libs/settings.py (Actually, it's recommended to create libs/settings_local.py and add your settings):

###################################                                                                    
# 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

According to your request, you should set:

MAILDIR_HASHED = False

3

Re: user maildir path

what is the full path to libs/settings.py? Can't find it.

4

Re: user maildir path

winson wrote:

what is the full path to libs/settings.py? Can't find it.

The maildir base directory is defined in settings.ini:

storage_base_directory = /var/vmail/vmail1

5

Re: user maildir path

Oops, my mistake, misunderstood your post.

The file libs/settings.py is placed under the root directory of iRedAdmin.
- On RHEL/CentOS, it's /var/www/iredadmin/libs/settings.py by default.
- On Debian/Ubuntu, it's /usr/share/apache2/iredadmin/libs/settings.py.
- On openSUSE, it's /srv/www/iredadmin/libs/settings.py.
- On FreeBSD, it's /usr/local/www/iredadmin/libs/settings.py.
- On OpenBSD, it's /var/www/iredadmin/settings.py.

You see, this is why we ask you provide basic info of your iRedMail server. Don't forget to show us next time.

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====