iredmail-doc/html_bk/change.server.hostname.html

67 lines
3.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Change server hostname</title>
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<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><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages. <a href="https://github.com/iredmail/docs">Help translate more</a></p>
<p><a href="./change.server.hostname-zh_CN.html">简体中文</a> /</p>
</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>
<ul>
<li><code>/etc/hosts</code></li>
<li>RHEL/CentOS:<ul>
<li>for RHEL/CentOS 6: <code>/etc/sysconfig/network</code></li>
</ul>
</li>
<li>Debian/Ubuntu:<ul>
<li><code>/etc/hostname</code></li>
<li><code>/etc/mailname</code></li>
</ul>
</li>
</ul>
<h2 id="postfix">Postfix</h2>
<ul>
<li><code>/var/spool/postfix/etc/hosts</code></li>
<li><code>/etc/postfix/main.cf</code> (Linux/OpenBSD) or <code>/usr/local/etc/postfix/main.cf</code> (FreeBSD)</li>
</ul>
<h2 id="amavisd">Amavisd</h2>
<ul>
<li>RHEL/CentOS, OpenBSD: <code>/etc/amavisd/amavisd.conf</code></li>
<li>Debian/Ubuntu: <code>/etc/amavis/conf.d/50-user</code></li>
<li>FreeBSD: <code>/usr/local/etc/amavisd.conf</code></li>
</ul>
<h2 id="sogo">SOGO</h2>
<ul>
<li><code>/etc/httpd/conf.d/SOGo.conf</code></li>
<li><code>/etc/apache2/conf.d/SOGo.conf</code></li>
<li><code>/etc/apache2/conf-available/SOGo.conf</code></li>
</ul>
<h2 id="deprecated-components">Deprecated Components</h2>
<h3 id="apache">Apache</h3>
<ul>
<li>RHEL/CentOS: <code>/etc/httpd/conf/httpd.conf</code></li>
<li>Debian/Ubuntu: <code>/etc/apache2/apache.conf</code></li>
</ul>
<h2 id="opendmarc">OpenDMARC:</h2>
<ul>
<li>Linux/OpenBSD: <code>/etc/opendmarc.conf</code> (parameter <code>AuthservID</code> and <code>TrustedAuthservIDs</code>)</li>
<li>FreeBSD: <code>/usr/local/etc/opendmarc.conf</code> (parameter <code>AuthservID</code> and <code>TrustedAuthservIDs</code>)</li>
</ul><div class="footer">
<p style="text-align: center; color: grey;">All documents are available in <a href="https://github.com/iredmail/docs/">GitHub 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://github.com/iredmail/docs/archive/master.zip">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></body></html>