Automatically list all available languages under article title while converting.

This commit is contained in:
Zhang Huangbin 2016-04-22 12:33:25 +08:00
parent ce6026e570
commit 26f1e21f0d
42 changed files with 386 additions and 233 deletions

View File

@ -6,6 +6,8 @@ to read converted documents in HTML format, get support in our forum:
* Create a new directory and name it to the short language code. e.g. for
Germany, please name it `de_DE`.
* Add file `de_DE/_lang.md` with the full name of the language. e.g.
write `English` in `en_US/_lang.md`, `简体中文` in `zh_CN/_lang.md`.
* Copy the markdown document you want to translate to new language directory,
create the same sub-directories as original document. For example, to
translate `en_US/howto/reset.user.password.md`, please create

View File

@ -1,3 +1 @@
* Don't store translation files in sub-folders, use name
`<lang>-<file-name>.html` instead.
* How to block attachment with Amavisd

View File

@ -3,13 +3,20 @@
# Author: Zhang Huangbin <zhb _at_ iredmail.org>
# Purpose: Convert markdown articles to HTML files.
ROOTDIR="$(pwd)"
export ROOTDIR="$(pwd)"
export OUTPUT_DIR="${ROOTDIR}/html"
CONVERTER="${ROOTDIR}/tools/markdown2html.py"
CMD_CONVERT="python ${CONVERTER}"
#CMD_CONVERT=":"
CHANGED_FILES="$(hg st | grep '\.md$')"
TODAY="$(date +%Y-%m-%d)"
# A temporary directory used to copy and modify markdown files, will be removed
# after all files were converted.
export TMP_DIR="${OUTPUT_DIR}/tmp"
export CONVERTER="${ROOTDIR}/tools/markdown2html.py"
export CMD_CONVERT="python ${CONVERTER}"
export CHANGED_FILES="$(hg st | grep '\.md$')"
export TODAY="$(date +%Y-%m-%d)"
[ -d ${OUTPUT_DIR} ] || mkdir -p ${OUTPUT_DIR}
[ -d ${TMP_DIR} ] || mkdir -p ${TMP_DIR}
strip_name_prefix()
{
@ -22,19 +29,19 @@ strip_name_prefix()
}
# Available translations
all_languages='en_US zh_CN'
export all_languages='en_US zh_CN'
# Chapter directories in specified order
all_chapter_dirs="overview \
installation \
mua \
upgrade \
migrations \
howto \
integrations \
cluster \
troubleshooting \
faq"
export all_chapter_dirs="overview \
installation \
mua \
upgrade \
migrations \
howto \
integrations \
cluster \
troubleshooting \
faq"
# Additional directories which stores scripts or other non-Markdown files.
additional_dirs=""
@ -54,28 +61,24 @@ for lang in ${all_languages}; do
break
fi
cd ${src_dir}
# Directory used to store converted html files.
OUTPUT_DIR="${ROOTDIR}/html"
CSS_FILE='./css/markdown.css'
IS_SUB_FOLDER='NO'
if [ X"${lang}" != X'en_US' ]; then
OUTPUT_DIR="${ROOTDIR}/html/${lang}"
CSS_FILE='../css/markdown.css'
IS_SUB_FOLDER='YES'
fi
# Markdown file used to store index of chapters/articles.
INDEX_MD="${OUTPUT_DIR}/index.md"
[ -d ${OUTPUT_DIR} ] || mkdir -p ${OUTPUT_DIR}
# Generate a index file.
has_index='NO'
if [ X"${lang}" == X'en_US' ]; then
has_index='YES'
fi
cd ${src_dir}
# Initial index file.
if [ -f ${src_dir}/_title.md ]; then
cat ${src_dir}/_title.md > ${INDEX_MD}
else
echo '' > ${INDEX_MD}
if [ X"${has_index}" == X'YES' ]; then
if [ -f ${src_dir}/_title.md ]; then
cat ${src_dir}/_title.md > ${INDEX_MD}
else
echo '' > ${INDEX_MD}
fi
fi
# Used for prettier printing
@ -101,17 +104,19 @@ for lang in ${all_languages}; do
_title_md="${chapter_dir}/_title.md"
_summary_md="${chapter_dir}/_summary.md"
if [ -f ${_title_md} ]; then
# generate index info of chapter
_chapter_title="$(cat ${_title_md})"
echo -e "### ${_chapter_title}" >> ${INDEX_MD}
if [ X"${has_index}" == X'YES' ]; then
if [ -f ${_title_md} ]; then
# generate index info of chapter
_chapter_title="$(cat ${_title_md})"
echo -e "### ${_chapter_title}" >> ${INDEX_MD}
if [ -f ${_summary_md} ]; then
echo '' >> ${INDEX_MD}
cat ${_summary_md} >> ${INDEX_MD}
if [ -f ${_summary_md} ]; then
echo '' >> ${INDEX_MD}
cat ${_summary_md} >> ${INDEX_MD}
# Insert an empty line to not mess up other formats like list.
echo '' >> ${INDEX_MD}
# Insert an empty line to not mess up other formats like list.
echo '' >> ${INDEX_MD}
fi
fi
fi
@ -120,9 +125,13 @@ for lang in ${all_languages}; do
for article_file in ${all_chapter_articles}; do
article_counter="$((article_counter+1))"
article_file_basename="$(basename ${article_file})"
article_html_file="$(strip_name_prefix ${article_file_basename})"
# Replace '.md' suffix by '.html'
article_html_file="$(echo ${article_html_file/%.md/.html})"
article_html_file_orig="$(strip_name_prefix ${article_file_basename})"
# Replace '.md' suffix by '.html', and append lang code
if [ X"${lang}" == X'en_US' ]; then
article_html_file="$(echo ${article_html_file_orig/%.md/.html})"
else
article_html_file="$(echo ${article_html_file_orig/%.md/-${lang}.html})"
fi
hide_article_in_index='NO'
if echo "${article_file_basename}" | grep '^0-' &>/dev/null; then
@ -139,7 +148,7 @@ for lang in ${all_languages}; do
# Get title in markdown file: '<h1>title</h1>'
#_article_title="$(head -1 ${article_file} | awk -F'[<|>]' '{print $3}')"
if [ X"${hide_article_in_index}" == X'NO' ]; then
if [ X"${hide_article_in_index}" == X'NO' -a X"${has_index}" == X'YES' ]; then
echo "* [${_article_title}](${article_html_file})" >> ${INDEX_MD}
fi
@ -154,14 +163,55 @@ for lang in ${all_languages}; do
echo -en "\n* Converting (#${article_counter}): ${lang}/${article_file}"
fi
# * Detect same file in different languages
# * Modify markdown file to append a note paragraph to remind
# reader that current document has different language version.
translations=''
for tlang in ${all_languages}; do
if [ X"${tlang}" != X"${lang}" ]; then
if [ -f ${ROOTDIR}/${tlang}/${chapter_dir}/${article_file_basename} ]; then
translations="${translations} ${tlang}"
fi
fi
done
# Has translation(s).
md_src="${article_file}"
if echo ${translations} | grep '_' &>/dev/null; then
tmp_md_orig="${TMP_DIR}/${article_file_basename}-${lang}"
tmp_md="${TMP_DIR}/${article_file_basename}"
cp -f ${article_file} ${tmp_md_orig}
set -x
# Generate new markdown file
# Get title line
_title_line="$(head -1 ${tmp_md_orig})"
# Remove title line
perl -pi -e 's#${_title_line}##' ${tmp_md_orig}
echo -e "${title_line}\n\n" > ${tmp_md}
echo -e '!!! note "This tutorial is available in other languages"\n\n' >> ${tmp_md}
for l in ${translations}; do
tmp_article_html_file="$(echo ${article_html_file_orig/%.md/-${l}.html})"
echo -e " * [$(cat ${ROOTDIR}/${l}/_lang.md)](./${tmp_article_html_file})\n" >> ${tmp_md}
done
echo -e '\n' >> ${tmp_md}
cat ${tmp_md_orig} >> ${tmp_md}
set +x
md_src="${tmp_md}"
rm -f ${tmp_md_orig}
fi
# Convert
${CMD_CONVERT} ${article_file} \
${CMD_CONVERT} ${md_src} \
${OUTPUT_DIR} \
output_filename="${article_html_file}" \
title="${_article_title}" \
add_index_link='yes' \
css="${CSS_FILE}" \
is_sub_folder="${IS_SUB_FOLDER}"
add_index_link='yes'
if [ X"$?" == X'0' ]; then
echo -e ' [DONE]'
@ -177,12 +227,13 @@ for lang in ${all_languages}; do
done
# Append addition links at the chapter bottom on index page.
_links_md="${chapter_dir}/_links.md"
if [ -f ${_links_md} ]; then
echo '' >> ${INDEX_MD}
cat ${_links_md} >> ${INDEX_MD}
echo '' >> ${INDEX_MD}
if [ X"${has_index}" == X'YES' ]; then
_links_md="${chapter_dir}/_links.md"
if [ -f ${_links_md} ]; then
echo '' >> ${INDEX_MD}
cat ${_links_md} >> ${INDEX_MD}
echo '' >> ${INDEX_MD}
fi
fi
done
@ -194,27 +245,25 @@ for lang in ${all_languages}; do
echo ''
echo "* ${article_counter} files total for ${lang}."
echo "* Converting ${INDEX_MD} for index page."
${CMD_CONVERT} ${INDEX_MD} ${OUTPUT_DIR} \
title="iRedMail Documentations" \
css="${CSS_FILE}" \
is_sub_folder="${IS_SUB_FOLDER}"
if [ X"${has_index}" == X'YES' ]; then
echo "* Converting ${INDEX_MD} for index page."
${CMD_CONVERT} ${INDEX_MD} ${OUTPUT_DIR} title="iRedMail Documentations"
# Cleanup and reset variables
rm -f ${INDEX_MD}
fi
# Cleanup and reset variables
rm -f ${INDEX_MD}
article_counter=0
done
rm -rf ${TMP_DIR} &>/dev/null
# Sync newly generated HTML files to local diretories.
if echo "$@" | grep -q -- '--sync-local'; then
# Copy to local hg repo of http://www.iredmail.org/docs/
echo "* Syncing converted HTML files."
rm -rf ../web/docs/*
cp -rf ${ROOTDIR}/html/* ${ROOTDIR}/../web/docs/
# Copy to iredmail.com/docs/
rm -rf /Volumes/STORAGE/Dropbox/Backup/iredmail.com/docs/*
cp -rf ${ROOTDIR}/html/* /Volumes/STORAGE/Dropbox/Backup/iredmail.com/docs/
fi
# Show changed files.

1
en_US/_lang.md Normal file
View File

@ -0,0 +1 @@
English

View File

@ -11,8 +11,8 @@
iRedAdmin-Pro RESTful API will return message in JSON format.
* If operation succeed, it returns JSON `{'success': true}`.
* If operation failed, it returns JSON `{'success': false, 'msg': '<error_reason>'}`.
* If operation succeed, client will receive JSON data: `{'success': true}`.
* If operation failed, client will receive JSON data: `{'success': false, 'msg': '<error_reason>'}`.
## Requirements

View File

@ -2,11 +2,6 @@
[TOC]
> This tutorial is available in other languages:
>
> * [Russian](http://www.everycloudtech.com/install.iredmail.on.rhel). Thanks to [Everycloudtech](http://www.everycloudtech.com/).
> * [简体中文](./zh_CN/install.iredmail.on.rhel.html)
## System Requirements
!!! warning

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>允许列表成员以列表邮件地址作为发件人发送邮件</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="_1">允许列表成员以列表邮件地址作为发件人发送邮件</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./allow.member.to.send.email.as.mail.list-en_US.html">English</a></li>
</ul>
</div>
<h1 id="_1">允许列表成员以列表邮件地址作为发件人发送邮件</h1>
<p>要允许列表成员以列表邮件地址作为发件人发送邮件,请按照以下步骤操作:</p>
<ul>
<li>在 Postfix 配置文件 <code>/etc/postfix/main.cf</code> 中移除参数 <code>reject_sender_login_mismatch</code></li>

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="allow-member-to-send-email-as-mailing-list-or-mail-alias">Allow member to send email as mailing list or mail alias</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./allow.member.to.send.email.as.mail.list-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="allow-member-to-send-email-as-mailing-list-or-mail-alias">Allow member to send email as mailing list or mail alias</h1>
<p>To allow member of mailing list (or mail alias) account to send email as this
mailing list (or mail alias), please follw steps below:</p>
<ul>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>允许用户无需身份验证发送邮件</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="_1">允许用户无需身份验证发送邮件</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./allow.user.to.send.email.without.authentication-en_US.html">English</a></li>
</ul>
</div>
<h1 id="_1">允许用户无需身份验证发送邮件</h1>
<p>创建文本文件 <code>/etc/postfix/accepted_unauth_senders</code>,列出无需身份验证就可以
发送邮件的用户邮件地址。下面以用户 <code>user@example.com</code> 为例:</p>
<pre><code>user@example.com OK

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="allow-user-to-send-email-without-smtp-authentication">Allow user to send email without smtp authentication</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./allow.user.to.send.email.without.authentication-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="allow-user-to-send-email-without-smtp-authentication">Allow user to send email without smtp authentication</h1>
<p>Create a plain text file: <code>/etc/postfix/accepted_unauth_senders</code>, list all
users' email addresses which are allowed to send email without smtp
authentication. We use user email address <code>user@example.com</code> for example:</p>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改邮件附件大小</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="_1">修改邮件附件大小</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./change.mail.attachment.size-en_US.html">English</a></li>
</ul>
</div>
<h1 id="_1">修改邮件附件大小</h1>
<div class="toc">
<ul>
<li><a href="#_1">修改邮件附件大小</a><ul>

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="change-mail-attachment-size">Change mail attachment size</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./change.mail.attachment.size-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="change-mail-attachment-size">Change mail attachment size</h1>
<div class="toc">
<ul>
<li><a href="#change-mail-attachment-size">Change mail attachment size</a><ul>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改服务器主机名</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="_1">修改服务器主机名</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./change.server.hostname-en_US.html">English</a></li>
</ul>
</div>
<h1 id="_1">修改服务器主机名</h1>
<p>要在安装 iRedMail 后修改服务器的主机名,请将以下文件中的旧主机名改为新主机名:</p>
<h2 id="_2">系统配置文件</h2>
<ul>

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="change-server-hostname">Change server hostname</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./change.server.hostname-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="change-server-hostname">Change server hostname</h1>
<p>To change server hostname after iRedMail installation, please update below
files to replace old hostname by the new one:</p>
<h2 id="system-config-files">System config files</h2>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>调试 Amavisd 和 SpamAssassin</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="amavisd-spamassassin">调试 Amavisd 和 SpamAssassin</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./debug.amavisd-en_US.html">English</a></li>
</ul>
</div>
<h1 id="amavisd-spamassassin">调试 Amavisd 和 SpamAssassin</h1>
<p>找到<a href="./file.locations.html#amavisd">Amavisd 配置文件</a>,修改 <code>$log_level</code> 参数,
然后重启 amavisd 服务。</p>
<pre><code>$log_level = 5; # 日志等级0 到 5或 -d

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="turn-on-debug-mode-in-amavisd-and-spamassassin">Turn on debug mode in Amavisd and SpamAssassin</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./debug.amavisd-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="turn-on-debug-mode-in-amavisd-and-spamassassin">Turn on debug mode in Amavisd and SpamAssassin</h1>
<p>In <a href="./file.locations.html#amavisd">Amavisd config file</a>, change <code>$log_level</code>,
then restart amavis service.</p>
<pre><code>$log_level = 5; # verbosity 0..5, -d

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>开启 Dovecot 调试模式</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="dovecot">开启 Dovecot 调试模式</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./debug.dovecot-en_US.html">English</a></li>
</ul>
</div>
<h1 id="dovecot">开启 Dovecot 调试模式</h1>
<blockquote>
<p>不知道 Dovecot 的配置文件在哪个目录?请查阅这个教程:
<a href="file.locations.html#dovecot">iRedMail 主要组件的配置文件和日志文件路径</a>.</p>

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="turn-on-debug-mode-in-dovecot">Turn on debug mode in Dovecot</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./debug.dovecot-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="turn-on-debug-mode-in-dovecot">Turn on debug mode in Dovecot</h1>
<blockquote>
<p>Don't know where Dovecot config files are? check this tutorial:
<a href="file.locations.html#dovecot">Locations of configuration and log files of major components</a>.</p>

View File

@ -2,14 +2,14 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>禁用 Clubbringer 提供的灰名单服务</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>&nbsp;
<span>iRedMail</span>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>对外发邮件禁用垃圾扫描、病毒扫描</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="_1">对外发邮件禁用垃圾扫描、病毒扫描</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./disable.spam.virus.scanning.for.outgoing.mails-en_US.html">English</a></li>
</ul>
</div>
<h1 id="_1">对外发邮件禁用垃圾扫描、病毒扫描</h1>
<p>要对外发邮件禁用垃圾扫描、病毒扫描功能,可以在 Amavisd 配置文件
<code>/etc/amavisd/amavisd.conf</code> (RHEL/CentOS) 或 <code>/etc/amavis/conf.d/50-user</code>
(Debian/Ubuntu) 或 <code>/usr/local/etc/amavisd.conf</code> (FreeBSD) 中增加 bypass 设置。</p>

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="disable-spam-virus-scanning-for-outgoing-mails">Disable spam virus scanning for outgoing mails</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./disable.spam.virus.scanning.for.outgoing.mails-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="disable-spam-virus-scanning-for-outgoing-mails">Disable spam virus scanning for outgoing mails</h1>
<p>To disable spam/virus scanning for outgoing mails, you can add bypass settings
in Amavisd config file: <code>/etc/amavisd/amavisd.conf</code> (RHEL/CentOS) or
<code>/etc/amavis/conf.d/50-user</code> (Debian/Ubuntu) or <code>/usr/local/etc/amavisd.conf</code>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在邮箱配额中忽略垃圾箱目录</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="_1">在邮箱配额中忽略垃圾箱目录</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./ignore.trash.folder.in.quota-en_US.html">English</a></li>
</ul>
</div>
<h1 id="_1">在邮箱配额中忽略垃圾箱目录</h1>
<p>在 Dovecot 中,针对单个用户的邮箱配额限制定义在下列文件之一:</p>
<ul>
<li><code>/etc/dovecot/dovecot-mysql.conf</code>: MySQL 后端</li>

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="ignore-trash-folder-in-mailbox-quota">Ignore Trash folder in mailbox quota</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./ignore.trash.folder.in.quota-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="ignore-trash-folder-in-mailbox-quota">Ignore Trash folder in mailbox quota</h1>
<p>Per-user mailbox quota rule is defined in Dovecot, in one of below files:</p>
<ul>
<li><code>/etc/dovecot/dovecot-mysql.conf</code>: MySQL backend</li>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在 Red Hat Enterprise Linux 或 CentOS 系统上安装 iRedMail</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="red-hat-enterprise-linux-centos-iredmail">在 Red Hat Enterprise Linux 或 CentOS 系统上安装 iRedMail</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./install.iredmail.on.rhel-en_US.html">English</a></li>
</ul>
</div>
<h1 id="red-hat-enterprise-linux-centos-iredmail">在 Red Hat Enterprise Linux 或 CentOS 系统上安装 iRedMail</h1>
<div class="toc">
<ul>
<li><a href="#red-hat-enterprise-linux-centos-iredmail">在 Red Hat Enterprise Linux 或 CentOS 系统上安装 iRedMail</a><ul>

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="install-iredmail-on-red-hat-enterprise-linux-centos">Install iRedMail on Red Hat Enterprise Linux, CentOS</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./install.iredmail.on.rhel-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="install-iredmail-on-red-hat-enterprise-linux-centos">Install iRedMail on Red Hat Enterprise Linux, CentOS</h1>
<div class="toc">
<ul>
<li><a href="#install-iredmail-on-red-hat-enterprise-linux-centos">Install iRedMail on Red Hat Enterprise Linux, CentOS</a><ul>
@ -35,13 +41,6 @@
</li>
</ul>
</div>
<blockquote>
<p>This tutorial is available in other languages:</p>
<ul>
<li><a href="http://www.everycloudtech.com/install.iredmail.on.rhel">Russian</a>. Thanks to <a href="http://www.everycloudtech.com/">Everycloudtech</a>.</li>
<li><a href="./zh_CN/install.iredmail.on.rhel.html">简体中文</a></li>
</ul>
</blockquote>
<h2 id="system-requirements">System Requirements</h2>
<div class="admonition warning">
<p class="admonition-title">Warning</p>

View File

@ -42,8 +42,8 @@
<h2 id="summary">Summary</h2>
<p>iRedAdmin-Pro RESTful API will return message in JSON format.</p>
<ul>
<li>If operation succeed, it returns JSON <code>{'success': true}</code>.</li>
<li>If operation failed, it returns JSON <code>{'success': false, 'msg': '&lt;error_reason&gt;'}</code>.</li>
<li>If operation succeed, client will receive JSON data: <code>{'success': true}</code>.</li>
<li>If operation failed, client will receive JSON data: <code>{'success': false, 'msg': '&lt;error_reason&gt;'}</code>.</li>
</ul>
<h2 id="requirements">Requirements</h2>
<ul>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>共享邮箱(将 IMAP 目录共享给其他用户)</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="imap">共享邮箱(将 IMAP 目录共享给其他用户)</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./mailbox.sharing-en_US.html">English</a></li>
</ul>
</div>
<h1 id="imap">共享邮箱(将 IMAP 目录共享给其他用户)</h1>
<blockquote>
<p>自 iRedMail-<code>0.9.0</code>版起,共享邮箱功能默认开户,用户不需要任何额外的配置。</p>
<p>自 iRedMail-<code>0.7.0</code> 版起Dovecot 已包含共享邮箱的相关设置,但没有启用。

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="mailbox-sharing-sharing-imap-folder-with-other-users">Mailbox sharing (Sharing IMAP folder with other users)</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./mailbox.sharing-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="mailbox-sharing-sharing-imap-folder-with-other-users">Mailbox sharing (Sharing IMAP folder with other users)</h1>
<div class="admonition note">
<p class="admonition-title">Note</p>
<ul>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Amavisd + SpamAssassin 无效,邮件头无 X-Spam-* 信息插入</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="amavisd-spamassassin-x-spam-">Amavisd + SpamAssassin 无效,邮件头无 X-Spam-* 信息插入</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./no.x-spam.headers-en_US.html">English</a></li>
</ul>
</div>
<h1 id="amavisd-spamassassin-x-spam-">Amavisd + SpamAssassin 无效,邮件头无 X-Spam-* 信息插入</h1>
<p>在 Amavisd 的配置文件 <code>/etc/amavisd/amavisd.conf</code> 中有如下默认设置:</p>
<pre><code>$sa_tag_level_deflt = 2.0;
</code></pre>

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="amavisd-spamassassin-not-working-no-mail-header-x-spam-inserted">Amavisd + SpamAssassin not working? no mail header (X-Spam-*) inserted</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./no.x-spam.headers-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="amavisd-spamassassin-not-working-no-mail-header-x-spam-inserted">Amavisd + SpamAssassin not working? no mail header (X-Spam-*) inserted</h1>
<p>Amavisd has below setting in its config file <code>/etc/amavisd/amavisd.conf</code> by default:</p>
<pre><code>$sa_tag_level_deflt = 2.0;
</code></pre>

View File

@ -2,19 +2,40 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>密码</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="_1">密码</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./password.hashes-en_US.html">English</a></li>
</ul>
</div>
<h1 id="_1">密码</h1>
<div class="toc">
<ul>
<li><a href="#_1">密码</a><ul>
<li><a href="#iredmail">iRedMail 支持的密码</a></li>
<li><a href="#iredmail_1">iRedMail 中默认使用的密码</a></li>
<li><a href="#iredmail_2">如何在 iRedMail 中使用不同的哈希密码</a><ul>
<li><a href="#mysql-postgresql">对于采用 MySQL 和 PostgreSQL 后端的用户</a></li>
<li><a href="#openldap">对于采用 OpenLDAP 后端的用户</a></li>
</ul>
</li>
<li><a href="#_2">参考资料</a></li>
</ul>
</li>
</ul>
</div>
<h2 id="iredmail">iRedMail 支持的密码</h2>
<p>在 iRedMail 中Doevcot 被配置为 Postfix 的 SASL 认证服务器因此Dovecot 支持
的所有密码格式都可以在 Postfix (SMTP 服务)中使用。 查看 Dovecot 的 wiki 页面

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="password-hashes">Password hashes</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./password.hashes-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="password-hashes">Password hashes</h1>
<div class="toc">
<ul>
<li><a href="#password-hashes">Password hashes</a><ul>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>性能优化</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="_1">性能优化</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./performance.tuning-en_US.html">English</a></li>
</ul>
</div>
<h1 id="_1">性能优化</h1>
<div class="toc">
<ul>
<li><a href="#_1">性能优化</a><ul>

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="performance-tuning">Performance tuning</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./performance.tuning-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="performance-tuning">Performance tuning</h1>
<div class="toc">
<ul>
<li><a href="#performance-tuning">Performance tuning</a><ul>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>重置用户密码</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="_1">重置用户密码</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./reset.user.password-en_US.html">English</a></li>
</ul>
</div>
<h1 id="_1">重置用户密码</h1>
<blockquote>
<ul>
<li>SQL 版本推荐使用 SSHA512 密码。没有特殊情况请不要使用 MD5 密码。</li>

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="reset-user-password">Reset user password</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./reset.user.password-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="reset-user-password">Reset user password</h1>
<blockquote>
<ul>
<li>SSHA512 is recommended for SQL backends, don't use MD5 unless you have a reason.</li>

View File

@ -2,19 +2,25 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>使用购买的 SSL 证书</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
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="ssl">使用购买的 SSL 证书</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./use.a.bought.ssl.certificate-en_US.html">English</a></li>
</ul>
</div>
<h1 id="ssl">使用购买的 SSL 证书</h1>
<div class="toc">
<ul>
<li><a href="#ssl">使用购买的 SSL 证书</a><ul>

View File

@ -14,7 +14,13 @@
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="use-a-bought-ssl-certificate">Use a bought SSL certificate</h1>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages</p>
<ul>
<li><a href="./use.a.bought.ssl.certificate-zh_CN.html">简体中文</a></li>
</ul>
</div>
<h1 id="use-a-bought-ssl-certificate">Use a bought SSL certificate</h1>
<div class="toc">
<ul>
<li><a href="#use-a-bought-ssl-certificate">Use a bought SSL certificate</a><ul>

View File

@ -1,76 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>iRedMail Documentations</title>
<link rel="stylesheet" type="text/css" href="../css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./../images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>&nbsp;
<span>iRedMail</span>
</a>
</div><h3 id="iredmail">安装 iRedMail</h3>
<ul>
<li>
<p>安装 iRedMail</p>
<ul>
<li><a href="./install.iredmail.on.rhel.html">Red Hat Enterprise Linux, CentOS</a></li>
<li><a href="./install.iredmail.on.debian.ubuntu.html">Debian, Ubuntu</a></li>
<li><a href="./install.iredmail.on.freebsd.html">FreeBSD (without Jail)</a>, <a href="./install.iredmail.on.freebsd.with.jail.html">FreeBSD with Jail (ezjail)</a></li>
<li><a href="./install.iredmail.on.openbsd.html">OpenBSD</a></li>
</ul>
</li>
<li>
<p>After installtion:</p>
<ul>
<li><a href="./setup.dns.html">Setup DNS records for your iRedMail server (A, PTR, MX, SPF, DKIM)</a></li>
</ul>
</li>
<li>
<p>Additional installation tips</p>
<ul>
<li><a href="./install.iredmail.with.remote.mysql.server.html">Install iRedMail with a remote MySQL server</a></li>
<li><a href="./unattended.iredmail.installation.html">Perform silent/unattended iRedMail installation</a></li>
</ul>
</li>
<li>
<p><a href="./performance.tuning.html">Performance tuning for a busy server</a></p>
</li>
</ul>
<h3 id="_1">迁移</h3>
<ul>
<li><a href="password.hashes.html">密码</a></li>
</ul>
<h3 id="how-to">How to</h3>
<ul>
<li><a href="change.mail.attachment.size.html">修改邮件附件大小</a></li>
<li><a href="disable.spam.virus.scanning.for.outgoing.mails.html">对外发邮件禁用垃圾扫描、病毒扫描</a></li>
<li><a href="no.x-spam.headers.html">Amavisd + SpamAssassin 无效,邮件头无 X-Spam-* 信息插入</a></li>
<li><a href="allow.member.to.send.email.as.mail.list.html">允许列表成员以列表邮件地址作为发件人发送邮件</a></li>
<li><a href="allow.user.to.send.email.without.authentication.html">允许用户无需身份验证发送邮件</a></li>
<li><a href="change.server.hostname.html">修改服务器主机名</a></li>
<li><a href="disable.greylisting.html">禁用 Clubbringer 提供的灰名单服务</a></li>
<li><a href="ignore.trash.folder.in.quota.html">在邮箱配额中忽略垃圾箱目录</a></li>
<li><a href="mailbox.sharing.html">共享邮箱(将 IMAP 目录共享给其他用户)</a></li>
<li><a href="reset.user.password.html">重置用户密码</a></li>
<li><a href="use.a.bought.ssl.certificate.html">使用购买的 SSL 证书</a></li>
</ul>
<h3 id="_2">排错与调试</h3>
<ul>
<li><a href="debug.amavisd.html">调试 Amavisd 和 SpamAssassin</a></li>
<li><a href="debug.dovecot.html">开启 Dovecot 调试模式</a></li>
</ul><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. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3293801-21', 'auto');
ga('send', 'pageview');
</script>
</body></html>

View File

@ -30,13 +30,6 @@ for arg in args:
(var, value) = arg.split('=')
cmd_opts[var] = value
if not 'css' in cmd_opts:
cmd_opts['css'] = './css/markdown.css'
cmd_opts['dir_base'] = '.'
if 'is_sub_folder=YES' in args:
cmd_opts['dir_base'] = './..'
# Get article title
if not 'title' in cmd_opts:
cmd_opts['title'] = commands.getoutput("""grep 'Title:' %s |awk -F'Title: ' '{print $2}'""" % filename)
@ -53,7 +46,7 @@ html = """\
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>%(title)s</title>
<link rel="stylesheet" type="text/css" href="%(css)s" />
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
""" % cmd_opts
@ -64,7 +57,7 @@ html += """
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="%(dir_base)s/images/logo-iredmail.png"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>&nbsp;
<span>iRedMail</span>

1
zh_CN/_lang.md Normal file
View File

@ -0,0 +1 @@
简体中文

View File

@ -1,5 +1,7 @@
# 密码
[TOC]
## iRedMail 支持的密码
在 iRedMail 中Doevcot 被配置为 Postfix 的 SASL 认证服务器因此Dovecot 支持