From 0dd3ad096a56d6c48e5cc1af91aae4d0b6855069 Mon Sep 17 00:00:00 2001 From: "VANQY-PC\\VANQY" Date: Fri, 14 Aug 2015 22:10:40 +0800 Subject: [PATCH] ?????????? --- zh_CN/howto/change.server.hostname.md | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 zh_CN/howto/change.server.hostname.md diff --git a/zh_CN/howto/change.server.hostname.md b/zh_CN/howto/change.server.hostname.md new file mode 100644 index 00000000..6e174e1d --- /dev/null +++ b/zh_CN/howto/change.server.hostname.md @@ -0,0 +1,38 @@ +# 更改邮件服务器主机名 + +要在 iRedMail 被安装后更改服务器的主机名,要将以下文件中的主机名更改为新主机名: + +## 系统配置文件 + +* `/etc/hosts` + +* Debian/Ubuntu: `/etc/hostname` +* Debian/Ubuntu: `/etc/mailname` + +## Postfix + +* `/var/spool/postfix/etc/hosts` +* `/etc/postfix/main.cf` (Linux/OpenBSD) 或者 `/usr/local/etc/postfix/main.cf` (FreeBSD) + +## Awstats + +* `/etc/awstats/awstats.web.conf` +* `/etc/awstats/awstats.smtp.conf` + +## Apache + +* RHEL/CentOS: `/etc/httpd/conf/httpd.conf` +* Debian/Ubuntu: `/etc/apache2/apache.conf` + +## Amavisd + +* RHEL/CentOS, OpenBSD: `/etc/amavisd/amavisd.conf` +* Debian/Ubuntu: `/etc/amavis/conf.d/50-user` +* FreeBSD: `/usr/local/etc/amavisd.conf` + +## SOGO + +* `/etc/httpd/conf.d/SOGo.conf` +* `/etc/apache2/conf.d/SOGo.conf` +* `/etc/apache2/conf-available/SOGo.conf` +