2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2016-01-28 17:55:34 -06:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
2018-05-05 19:46:08 -05:00
< title > iRedAdmin-Pro: Customize maildir path< / title >
2016-01-28 17:55:34 -06:00
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
< / head >
< body >
2019-07-13 06:21:55 -05:00
2016-01-28 17:55:34 -06:00
< div id = "navigation" >
2017-11-16 21:48:44 -06:00
< a href = "https://www.iredmail.org" target = "_blank" >
2016-04-19 12:48:51 -05:00
< img alt = "iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
2018-05-05 19:46:08 -05:00
// < a href = "./index.html" > Document Index< / a > < / div > < h1 id = "iredadmin-pro-customize-maildir-path" > iRedAdmin-Pro: Customize maildir path< / h1 >
< p > iRedAdmin-Pro (and iRedAdmin open source edition) offers several settings to
2018-06-27 06:35:57 -05:00
customize the maildir path, default values are stored in file
< code > libs/default_settings.py< / code > , if you need to change them,
2016-01-28 17:55:34 -06:00
please write your own setting in iRedAdmin main config file < code > settings.py< / code > , so
that your settings will be kept after upgrading iRedAdmin.< / p >
< pre > < code > # It's RECOMMEND for better performance. Samples:
2016-01-29 02:24:36 -06:00
# - hashed: domain.ltd/u/s/e/username-2009.09.04.12.05.33/
2016-01-28 17:55:34 -06:00
# - 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/
2016-01-29 02:24:36 -06:00
# - without: username/
2016-01-28 17:55:34 -06:00
MAILDIR_PREPEND_DOMAIN = True
# Append timestamp in path. Samples:
2016-01-29 02:24:36 -06:00
# - with timestamp: domain.ltd/username-2010.12.20.13.13.33/
# - without timestamp: domain.ltd/username/
2016-01-28 17:55:34 -06:00
MAILDIR_APPEND_TIMESTAMP = True
2016-01-29 02:46:54 -06:00
< / code > < / pre >
2018-06-27 06:35:57 -05:00
< p > Also one setting in < code > settings.py< / code > :< / p >
< pre > < code > # Directory used to store mailboxes. Defaults to /var/vmail/vmail1.
# Note: This directory must be owned by 'vmail:vmail' with permission 0700.
storage_base_directory = '/var/vmail/vmail1'
< / code > < / pre >
2016-01-29 02:46:54 -06:00
< p > Note: each time you modified iRedAdmin source code (Python source file which
file name ends with < code > .py< / code > ), you must restart Apache or uwsgi (if you're running
2016-05-19 06:51:20 -05:00
Nginx) service to load modified code.< / p > < div class = "footer" >
2019-09-06 00:54:43 -05:00
< p style = "text-align: center; color: grey;" > All documents are available in < a href = "https://github.com/iredmail/docs/" > BitBucket repository< / a > , and published under < a href = "http://creativecommons.org/licenses/by-nd/3.0/us/" target = "_blank" > Creative Commons< / a > license. You can < a href = "https://github.com/iredmail/docs/archive/master.zip" > download the latest version< / a > for offline reading. If you found something wrong, please do < a href = "https://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
2016-05-19 06:51:20 -05:00
< / div >
2017-11-05 02:33:58 -06:00
<!-- Global site tag (gtag.js) - Google Analytics -->
< script async src = "https://www.googletagmanager.com/gtag/js?id=UA-3293801-21" > < / script >
< script >
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
2016-01-28 17:55:34 -06:00
2017-11-05 02:33:58 -06:00
gtag('config', 'UA-3293801-21');
2016-01-28 17:55:34 -06:00
< / script >
< / body > < / html >