This commit is contained in:
Zhang Huangbin 2016-09-15 15:49:23 +08:00
parent 5ef0dea879
commit 7219ebbe00
12 changed files with 70 additions and 44 deletions

View File

@ -169,9 +169,11 @@ automatically. Type `y` or `Y` and press `Enter` to start.
## Important things you __MUST__ know after installation ## Important things you __MUST__ know after installation
> The weakest part of a mail server is user's weak password. Spammers don't !!! warning
> want to hack your server, they just want to send spam from your server.
> Please __ALWAYS ALWAYS ALWAYS__ force users to use a strong password. The weakest part of a mail server is user's weak password. Spammers don't
want to hack your server, they just want to send spam from your server.
Please __ALWAYS ALWAYS ALWAYS__ force users to use a strong password.
* Read file `/root/iRedMail-x.y.z/iRedMail.tips` first, it contains: * Read file `/root/iRedMail-x.y.z/iRedMail.tips` first, it contains:

View File

@ -171,9 +171,11 @@ automatically. Type `y` or `Y` and press `Enter` to start.
## Important things you __MUST__ know after installation ## Important things you __MUST__ know after installation
> The weakest part of a mail server is user's weak password. Spammers don't !!! warning
> want to hack your server, they just want to send spam from your server.
> Please __ALWAYS ALWAYS ALWAYS__ force users to use a strong password. The weakest part of a mail server is user's weak password. Spammers don't
want to hack your server, they just want to send spam from your server.
Please __ALWAYS ALWAYS ALWAYS__ force users to use a strong password.
* Read file `/root/iRedMail-x.y.z/iRedMail.tips` first, it contains: * Read file `/root/iRedMail-x.y.z/iRedMail.tips` first, it contains:

View File

@ -187,9 +187,11 @@ automatically. Type `y` or `Y` and press `Enter` to start.
## Important things you __MUST__ know after installation ## Important things you __MUST__ know after installation
> The weakest part of a mail server is user's weak password. Spammers don't !!! warning
> want to hack your server, they just want to send spam from your server.
> Please __ALWAYS ALWAYS ALWAYS__ force users to use a strong password. The weakest part of a mail server is user's weak password. Spammers don't
want to hack your server, they just want to send spam from your server.
Please __ALWAYS ALWAYS ALWAYS__ force users to use a strong password.
* Read file `/root/iRedMail-x.y.z/iRedMail.tips` first, it contains: * Read file `/root/iRedMail-x.y.z/iRedMail.tips` first, it contains:

View File

@ -194,9 +194,11 @@ automatically. Type `y` or `Y` and press `Enter` to start.
## Important things you __MUST__ know after installation ## Important things you __MUST__ know after installation
> The weakest part of a mail server is user's weak password. Spammers don't !!! warning
> want to hack your server, they just want to send spam from your server.
> Please __ALWAYS ALWAYS ALWAYS__ force users to use a strong password. The weakest part of a mail server is user's weak password. Spammers don't
want to hack your server, they just want to send spam from your server.
Please __ALWAYS ALWAYS ALWAYS__ force users to use a strong password.
* Read file `/root/iRedMail-x.y.z/iRedMail.tips` first, it contains: * Read file `/root/iRedMail-x.y.z/iRedMail.tips` first, it contains:

View File

@ -200,9 +200,11 @@ automatically. Type `y` or `Y` and press `Enter` to start.
## Important things you __MUST__ know after installation ## Important things you __MUST__ know after installation
> The weakest part of a mail server is user's weak password. Spammers don't !!! warning
> want to hack your server, they just want to send spam from your server.
> Please __ALWAYS ALWAYS ALWAYS__ force users to use a strong password. The weakest part of a mail server is user's weak password. Spammers don't
want to hack your server, they just want to send spam from your server.
Please __ALWAYS ALWAYS ALWAYS__ force users to use a strong password.
* Read file `/root/iRedMail-x.y.z/iRedMail.tips` first, it contains: * Read file `/root/iRedMail-x.y.z/iRedMail.tips` first, it contains:

View File

@ -107,7 +107,7 @@ Restart the iptables service.
### Web Access Ejabberd Admin Console ### Web Access Ejabberd Admin Console
Now you can access http://192.168.1.10:5280/admin/ Now you can access <http://192.168.1.10:5280/admin/>
Login in the ejabberd web admin, We have seting www@example.com as admin for the ejabberd server Login in the ejabberd web admin, We have seting www@example.com as admin for the ejabberd server
@ -122,19 +122,26 @@ If you want to add the second virtual domain, you need first create a new domain
{hosts, ["example.com","test.com"]}. {hosts, ["example.com","test.com"]}.
``` ```
### XMPP Client: Pidgin ### XMPP Clients
You can choose your favor XMPP client, now I use Pidgin for test. Download the newst version of Pidgin and install. The setting is simple. There're many free and open source XMPP clients available, you can choose the
one you prefer listed on this page: <http://xmpp.org/software/clients.html>
On Linux/BSD, Pidgin is a good choice: <http://pidgin.im>
### XMPP Federation and DNS Link ### XMPP Federation and DNS Link
To ensure that your ejabberd instance will federate properly with the rest of the XMPP network, particularly with Google's "GTalk" service (i.e. the "@gmail.com" chat tool,) we must set the SRV records for the domain to point to the server where the ejabberd instance is running. We need three records, which can be created in the DNS Management tool of your choice: To ensure that your ejabberd instance will federate properly with the rest of
the XMPP network, we must set the SRV records for the domain to point to the
server where the ejabberd instance is running. We need two records, which can
be created in the DNS Management tool of your choice:
* Service: _xmpp-server Protocol: TCP Port: 5269 ```
* Service: _xmpp-client Protocol: TCP Port: 5222 _xmpp-client._tcp.example.net. 86400 IN SRV 5 0 5222 example.net.
* Service: _jabber Protocol: TCP Port: 5269 _xmpp-server._tcp.example.net. 86400 IN SRV 5 0 5269 example.net.
```
The "target" of the SRV record should point to the publicly routable hostname for that machine (e.g. "mail.example.com"). The priority and weight should both be set to 0. For more examples, please read this tutorial: <http://wiki.xmpp.org/web/SRV_Records>
## Troubleshooting ## Troubleshooting

View File

@ -26,7 +26,7 @@
<li><a href="#start-ejabberd-service">Start ejabberd service</a></li> <li><a href="#start-ejabberd-service">Start ejabberd service</a></li>
<li><a href="#config-iptables">Config iptables</a></li> <li><a href="#config-iptables">Config iptables</a></li>
<li><a href="#web-access-ejabberd-admin-console">Web Access Ejabberd Admin Console</a></li> <li><a href="#web-access-ejabberd-admin-console">Web Access Ejabberd Admin Console</a></li>
<li><a href="#xmpp-client-pidgin">XMPP Client: Pidgin</a></li> <li><a href="#xmpp-clients">XMPP Clients</a></li>
<li><a href="#xmpp-federation-and-dns-link">XMPP Federation and DNS Link</a></li> <li><a href="#xmpp-federation-and-dns-link">XMPP Federation and DNS Link</a></li>
</ul> </ul>
</li> </li>
@ -121,7 +121,7 @@ ejabberd is running
</code></pre> </code></pre>
<h3 id="web-access-ejabberd-admin-console">Web Access Ejabberd Admin Console</h3> <h3 id="web-access-ejabberd-admin-console">Web Access Ejabberd Admin Console</h3>
<p>Now you can access http://192.168.1.10:5280/admin/</p> <p>Now you can access <a href="http://192.168.1.10:5280/admin/">http://192.168.1.10:5280/admin/</a></p>
<p>Login in the ejabberd web admin, We have seting www@example.com as admin for the ejabberd server</p> <p>Login in the ejabberd web admin, We have seting www@example.com as admin for the ejabberd server</p>
<p>You can not create user in webadmin. If you want to create user, you need first add user in iRedAdmin, then enable the jabber service for the user in phpldapadmin.</p> <p>You can not create user in webadmin. If you want to create user, you need first add user in iRedAdmin, then enable the jabber service for the user in phpldapadmin.</p>
<p>If you want to add the second virtual domain, you need first create a new domain in iRedAdmin, then modify /etc/ejabberd/ejabberd.cfg .</p> <p>If you want to add the second virtual domain, you need first create a new domain in iRedAdmin, then modify /etc/ejabberd/ejabberd.cfg .</p>
@ -132,16 +132,20 @@ ejabberd is running
{hosts, [&quot;example.com&quot;,&quot;test.com&quot;]}. {hosts, [&quot;example.com&quot;,&quot;test.com&quot;]}.
</code></pre> </code></pre>
<h3 id="xmpp-client-pidgin">XMPP Client: Pidgin</h3> <h3 id="xmpp-clients">XMPP Clients</h3>
<p>You can choose your favor XMPP client, now I use Pidgin for test. Download the newst version of Pidgin and install. The setting is simple.</p> <p>There're many free and open source XMPP clients available, you can choose the
one you prefer listed on this page: <a href="http://xmpp.org/software/clients.html">http://xmpp.org/software/clients.html</a></p>
<p>On Linux/BSD, Pidgin is a good choice: <a href="http://pidgin.im">http://pidgin.im</a></p>
<h3 id="xmpp-federation-and-dns-link">XMPP Federation and DNS Link</h3> <h3 id="xmpp-federation-and-dns-link">XMPP Federation and DNS Link</h3>
<p>To ensure that your ejabberd instance will federate properly with the rest of the XMPP network, particularly with Google's "GTalk" service (i.e. the "@gmail.com" chat tool,) we must set the SRV records for the domain to point to the server where the ejabberd instance is running. We need three records, which can be created in the DNS Management tool of your choice:</p> <p>To ensure that your ejabberd instance will federate properly with the rest of
<ul> the XMPP network, we must set the SRV records for the domain to point to the
<li>Service: _xmpp-server Protocol: TCP Port: 5269</li> server where the ejabberd instance is running. We need two records, which can
<li>Service: _xmpp-client Protocol: TCP Port: 5222</li> be created in the DNS Management tool of your choice:</p>
<li>Service: _jabber Protocol: TCP Port: 5269</li> <pre><code>_xmpp-client._tcp.example.net. 86400 IN SRV 5 0 5222 example.net.
</ul> _xmpp-server._tcp.example.net. 86400 IN SRV 5 0 5269 example.net.
<p>The "target" of the SRV record should point to the publicly routable hostname for that machine (e.g. "mail.example.com"). The priority and weight should both be set to 0.</p> </code></pre>
<p>For more examples, please read this tutorial: <a href="http://wiki.xmpp.org/web/SRV_Records">http://wiki.xmpp.org/web/SRV_Records</a></p>
<h2 id="troubleshooting">Troubleshooting</h2> <h2 id="troubleshooting">Troubleshooting</h2>
<ol> <ol>
<li><a href="./debug.openldap.html">Debug OpenLDAP</a></li> <li><a href="./debug.openldap.html">Debug OpenLDAP</a></li>

View File

@ -190,11 +190,12 @@ confirm to start installation. It will install and configure required packages
automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code> to start.</p> automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code> to start.</p>
<p><img alt="" src="./images/installation/review.png" width="700px" /></p> <p><img alt="" src="./images/installation/review.png" width="700px" /></p>
<h2 id="important-things-you-must-know-after-installation">Important things you <strong>MUST</strong> know after installation</h2> <h2 id="important-things-you-must-know-after-installation">Important things you <strong>MUST</strong> know after installation</h2>
<blockquote> <div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>The weakest part of a mail server is user's weak password. Spammers don't <p>The weakest part of a mail server is user's weak password. Spammers don't
want to hack your server, they just want to send spam from your server. want to hack your server, they just want to send spam from your server.
Please <strong>ALWAYS ALWAYS ALWAYS</strong> force users to use a strong password.</p> Please <strong>ALWAYS ALWAYS ALWAYS</strong> force users to use a strong password.</p>
</blockquote> </div>
<ul> <ul>
<li> <li>
<p>Read file <code>/root/iRedMail-x.y.z/iRedMail.tips</code> first, it contains:</p> <p>Read file <code>/root/iRedMail-x.y.z/iRedMail.tips</code> first, it contains:</p>

View File

@ -185,11 +185,12 @@ confirm to start installation. It will install and configure required packages
automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code> to start.</p> automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code> to start.</p>
<p><img alt="" src="./images/installation/review.png" width="700px" /></p> <p><img alt="" src="./images/installation/review.png" width="700px" /></p>
<h2 id="important-things-you-must-know-after-installation">Important things you <strong>MUST</strong> know after installation</h2> <h2 id="important-things-you-must-know-after-installation">Important things you <strong>MUST</strong> know after installation</h2>
<blockquote> <div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>The weakest part of a mail server is user's weak password. Spammers don't <p>The weakest part of a mail server is user's weak password. Spammers don't
want to hack your server, they just want to send spam from your server. want to hack your server, they just want to send spam from your server.
Please <strong>ALWAYS ALWAYS ALWAYS</strong> force users to use a strong password.</p> Please <strong>ALWAYS ALWAYS ALWAYS</strong> force users to use a strong password.</p>
</blockquote> </div>
<ul> <ul>
<li> <li>
<p>Read file <code>/root/iRedMail-x.y.z/iRedMail.tips</code> first, it contains:</p> <p>Read file <code>/root/iRedMail-x.y.z/iRedMail.tips</code> first, it contains:</p>

View File

@ -212,11 +212,12 @@ confirm to start installation. It will install and configure required packages
automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code> to start.</p> automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code> to start.</p>
<p><img alt="" src="./images/installation/review.png" width="700px" /></p> <p><img alt="" src="./images/installation/review.png" width="700px" /></p>
<h2 id="important-things-you-must-know-after-installation">Important things you <strong>MUST</strong> know after installation</h2> <h2 id="important-things-you-must-know-after-installation">Important things you <strong>MUST</strong> know after installation</h2>
<blockquote> <div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>The weakest part of a mail server is user's weak password. Spammers don't <p>The weakest part of a mail server is user's weak password. Spammers don't
want to hack your server, they just want to send spam from your server. want to hack your server, they just want to send spam from your server.
Please <strong>ALWAYS ALWAYS ALWAYS</strong> force users to use a strong password.</p> Please <strong>ALWAYS ALWAYS ALWAYS</strong> force users to use a strong password.</p>
</blockquote> </div>
<ul> <ul>
<li> <li>
<p>Read file <code>/root/iRedMail-x.y.z/iRedMail.tips</code> first, it contains:</p> <p>Read file <code>/root/iRedMail-x.y.z/iRedMail.tips</code> first, it contains:</p>

View File

@ -213,11 +213,12 @@ confirm to start installation. It will install and configure required packages
automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code> to start.</p> automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code> to start.</p>
<p><img alt="" src="./images/installation/review.png" width="700px" /></p> <p><img alt="" src="./images/installation/review.png" width="700px" /></p>
<h2 id="important-things-you-must-know-after-installation">Important things you <strong>MUST</strong> know after installation</h2> <h2 id="important-things-you-must-know-after-installation">Important things you <strong>MUST</strong> know after installation</h2>
<blockquote> <div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>The weakest part of a mail server is user's weak password. Spammers don't <p>The weakest part of a mail server is user's weak password. Spammers don't
want to hack your server, they just want to send spam from your server. want to hack your server, they just want to send spam from your server.
Please <strong>ALWAYS ALWAYS ALWAYS</strong> force users to use a strong password.</p> Please <strong>ALWAYS ALWAYS ALWAYS</strong> force users to use a strong password.</p>
</blockquote> </div>
<ul> <ul>
<li> <li>
<p>Read file <code>/root/iRedMail-x.y.z/iRedMail.tips</code> first, it contains:</p> <p>Read file <code>/root/iRedMail-x.y.z/iRedMail.tips</code> first, it contains:</p>

View File

@ -216,11 +216,12 @@ confirm to start installation. It will install and configure required packages
automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code> to start.</p> automatically. Type <code>y</code> or <code>Y</code> and press <code>Enter</code> to start.</p>
<p><img alt="" src="./images/installation/review.png" width="700px" /></p> <p><img alt="" src="./images/installation/review.png" width="700px" /></p>
<h2 id="important-things-you-must-know-after-installation">Important things you <strong>MUST</strong> know after installation</h2> <h2 id="important-things-you-must-know-after-installation">Important things you <strong>MUST</strong> know after installation</h2>
<blockquote> <div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>The weakest part of a mail server is user's weak password. Spammers don't <p>The weakest part of a mail server is user's weak password. Spammers don't
want to hack your server, they just want to send spam from your server. want to hack your server, they just want to send spam from your server.
Please <strong>ALWAYS ALWAYS ALWAYS</strong> force users to use a strong password.</p> Please <strong>ALWAYS ALWAYS ALWAYS</strong> force users to use a strong password.</p>
</blockquote> </div>
<ul> <ul>
<li> <li>
<p>Read file <code>/root/iRedMail-x.y.z/iRedMail.tips</code> first, it contains:</p> <p>Read file <code>/root/iRedMail-x.y.z/iRedMail.tips</code> first, it contains:</p>