iredmail-doc/html/iredadmin-pro.customize.mai...

54 lines
2.7 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
2016-01-28 17:55:34 -06:00
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<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>
<div id="navigation">
2017-11-16 21:48:44 -06:00
<a href="https://www.iredmail.org" target="_blank">
<img alt="iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<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
customize the maildir path, default values
2016-01-28 17:55:34 -06:00
are stored in file <code>libs/default_settings.py</code>, if you need to change them,
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>
<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
Nginx) service to load modified code.</p><div class="footer">
2017-11-16 21:48:44 -06:00
<p style="text-align: center; color: grey;">All documents are available in <a href="https://bitbucket.org/zhb/iredmail-docs/src">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://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">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>
</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>