Typo in setup_dns.html.

This commit is contained in:
Zhang Huangbin 2014-10-10 10:35:27 +08:00
parent 17b274b31e
commit db9755b974
3 changed files with 30 additions and 18 deletions

View File

@ -44,11 +44,6 @@ for chapter_dir in ${all_chapter_dirs}; do
# Get articles
all_chapter_articles="$(find ${chapter_dir} -depth 1 -type f -iname '[0-9a-z]*.md')"
echo "* ${chapter_dir}/"
for article in ${all_chapter_articles}; do
echo " - ${article}"
done
# Output directory.
# Remove prefix '[number]-' in chapter directory name.
#chapter_dir_in_article="$(strip_name_prefix ${chapter_dir})"
@ -99,7 +94,7 @@ for chapter_dir in ${all_chapter_dirs}; do
# 'src/default/' is path to view source file on bitbucket.org
echo "* [${_article_title}](https://bitbucket.org/zhb/docs.iredmail.org/src/default/${article_file_without_prefix_path})" >> ${README_MD}
#${CMD_CONVERT} ${article_file} ${_output_chapter_dir} \
echo "* Converting: ${article_file}"
${CMD_CONVERT} ${article_file} ${OUTPUT_DIR} \
output_filename="${article_html_file}" \
title="${_article_title}" \

View File

@ -124,7 +124,7 @@ that e-mail. MX record is the location of your mail server that you have
provided to the outside world via the DNS.</p>
<p>Most mail servers generally have more than one MX record, meaning you could
have more than one mail server setup to receive e-mails. Each MX record has a
priority number assigned to it in the DNS. <strong>The MX record with lowest number
priority number assigned to it in the DNS. The MX record with <strong>lowest number
has the highest priority</strong> and that is considered your primary MX record or
your main mail server. The next lowest mx number has the next highest primary
and so on. You generally have more than one mail server, one being the primary
@ -133,6 +133,14 @@ and the others as backups, only one MX for mail server is OK too.</p>
<p>If your ISP or domain name registrar is providing the DNS service, you can
request them to set one up for you. If you manage your own DNS servers then
you need to create the MX records in your DNS zone yourself.</p>
<p>Sample MX record:</p>
<pre><code>NAME PRIORITY TYPE DATA
mydomain.com. 10 mx mail.mydomain.com
</code></pre>
<p>The end result of this record is, emails sent to <code>[user]@mydomain.com</code> will
be delivered to server <code>mail.mydomain.com</code>.</p>
<h2 id="spf-record-for-your-mail-domain-name">SPF record for your mail domain name</h2>
<h3 id="what-is-a-spf-record">What is a SPF record</h3>
<p>SPF is a spam and phishing scam fighting method which uses DNS SPF-records to
@ -196,7 +204,7 @@ tag. Note that the same identity can have multiple identifiers.</p>
<li>Run command in terminal to show your DKIM keys:</li>
</ul>
<pre><code class="bash"># amavisd showkeys
dkim._domainkey.iredmail.org. 3600 TXT (
dkim._domainkey.mydomain.com. 3600 TXT (
&quot;v=DKIM1; p=&quot;
&quot;MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYArsr2BKbdhv9efugByf7LhaK&quot;
&quot;txFUt0ec5+1dWmcDv0WH0qZLFK711sibNN5LutvnaiuH+w3Kr8Ylbw8gq2j0UBok&quot;
@ -230,7 +238,7 @@ zone file directly.</p>
</li>
</ul>
<pre><code class="shell"># amavisd testkeys
TESTING: dkim._domainkey.iredmail.org =&gt; pass
TESTING: dkim._domainkey.mydomain.com =&gt; pass
</code></pre>
<p>If it shows <code>pass</code>, it works.</p>
@ -238,8 +246,7 @@ TESTING: dkim._domainkey.iredmail.org =&gt; pass
some hours to be available.</p>
<h2 id="references">References</h2>
<ul>
<li>http://www.emailtalk.org/MX.aspx</li>
<li>http://en.wikipedia.org/wiki/MX_record</li>
<li>http://www.openspf.org/RFC_4408</li>
<li>http://www.simpledns.com/</li>
<li>http://www.openspf.org/</li>
<li>http://www.dkim.org/</li>
</ul><br /><p>If you found something wrong in this document, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.</p></body></html>

View File

@ -98,7 +98,7 @@ provided to the outside world via the DNS.
Most mail servers generally have more than one MX record, meaning you could
have more than one mail server setup to receive e-mails. Each MX record has a
priority number assigned to it in the DNS. __The MX record with lowest number
priority number assigned to it in the DNS. The MX record with __lowest number
has the highest priority__ and that is considered your primary MX record or
your main mail server. The next lowest mx number has the next highest primary
and so on. You generally have more than one mail server, one being the primary
@ -110,6 +110,17 @@ If your ISP or domain name registrar is providing the DNS service, you can
request them to set one up for you. If you manage your own DNS servers then
you need to create the MX records in your DNS zone yourself.
Sample MX record:
```
NAME PRIORITY TYPE DATA
mydomain.com. 10 mx mail.mydomain.com
```
The end result of this record is, emails sent to `[user]@mydomain.com` will
be delivered to server `mail.mydomain.com`.
## SPF record for your mail domain name
### What is a SPF record
@ -190,7 +201,7 @@ tag. Note that the same identity can have multiple identifiers.
```bash
# amavisd showkeys
dkim._domainkey.iredmail.org. 3600 TXT (
dkim._domainkey.mydomain.com. 3600 TXT (
"v=DKIM1; p="
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYArsr2BKbdhv9efugByf7LhaK"
"txFUt0ec5+1dWmcDv0WH0qZLFK711sibNN5LutvnaiuH+w3Kr8Ylbw8gq2j0UBok"
@ -224,7 +235,7 @@ zone file directly.
```shell
# amavisd testkeys
TESTING: dkim._domainkey.iredmail.org => pass
TESTING: dkim._domainkey.mydomain.com => pass
```
If it shows `pass`, it works.
@ -234,7 +245,6 @@ some hours to be available.
## References
* http://www.emailtalk.org/MX.aspx
* http://en.wikipedia.org/wiki/MX_record
* http://www.openspf.org/RFC_4408
* http://www.simpledns.com/
* http://www.openspf.org/
* http://www.dkim.org/