New: howto/change.hostname.md.

This commit is contained in:
Zhang Huangbin 2014-12-26 14:37:12 +08:00
parent 0c3fe1c130
commit c1e753ffdb
3 changed files with 56 additions and 0 deletions

15
howto/change.hostname.md Normal file
View File

@ -0,0 +1,15 @@
# Change server hostname
If you want to change server hostname, please replace old hostname in below
files:
* Update Postfix config file `/etc/postfix/main.cf`.
* Amavisd config file `/etc/amavisd/amavisd.conf` or `/etc/amavis/conf.d/50-user` (Debian/Ubuntu).
* `/etc/hosts`
* `/var/spool/postfix/etc/hosts`
* `/usr/local/bin/dovecot-quota-warning.sh`, required only if you're running
iRedMail-0.8.7 or earlier releases.
* Re-generate ssl cert and key with script `tools/generate_ssl_keys.sh` shipped
in iRedMail.

40
html/change.hostname.html Normal file
View File

@ -0,0 +1,40 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Change server hostname</title>
<link href="./css/markdown.css" rel="stylesheet"></head>
</head>
<body>
<div id="navigation">
<a href="http://www.iredmail.org" target="_blank">iRedMail web site</a>
// <a href="./index.html">Document Index</a>
</div><h1 id="change-server-hostname">Change server hostname</h1>
<p>If you want to change server hostname, please replace old hostname in below
files:</p>
<ul>
<li>Update Postfix config file <code>/etc/postfix/main.cf</code>.</li>
<li>Amavisd config file <code>/etc/amavisd/amavisd.conf</code> or <code>/etc/amavis/conf.d/50-user</code> (Debian/Ubuntu).</li>
<li><code>/etc/hosts</code></li>
<li><code>/var/spool/postfix/etc/hosts</code></li>
<li>
<p><code>/usr/local/bin/dovecot-quota-warning.sh</code>, required only if you're running
iRedMail-0.8.7 or earlier releases.</p>
</li>
<li>
<p>Re-generate ssl cert and key with script <code>tools/generate_ssl_keys.sh</code> shipped
in iRedMail.</p>
</li>
</ul><p style="text-align: center; color: grey;">Document published under a <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">CC BY-ND 3.0</a> license. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.<!-- Google Analytics -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3293801-14");
pageTracker._trackPageview();
} catch(err) {}
</script>
</body></html>

View File

@ -50,6 +50,7 @@
<li><a href="allow.insecure.pop3.imap.smtp.connections.html">Allow insecure POP3/IMAP/SMTP connections without STARTTLS</a></li>
<li><a href="allow.user.to.send.email.without.authentication.html">Allow user to send email without authentication</a></li>
<li><a href="amavisd.per-recipient.policy.lookup.html">Amavisd: Enable per-recipient policy lookup</a></li>
<li><a href="change.hostname.html">Change server hostname</a></li>
<li><a href="dovecot.master.user.html">Dovecot Master User</a></li>
<li><a href="force.user.to.change.password.html">Force mail user to change password in 90 days</a></li>
<li><a href="ignore.trash.folder.in.quota.html">Ignore Trash folder in mailbox quota</a></li>