首页 » 邮件服务器 » iredmail » 正文

CentOS_6.4_x64 安装iRedMail0.8.5

1. 设置主机名

# vi /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=mail.example.com

2. 添加地址映射

# vi /etc/hosts

192.168.1.200 mail.example.com

3. 重启网络服务

# /etc/init.d/network restart

测试:

# hostname

mail.example.com

# ping mail.example.com

PING mail.example.com (192.168.1.200) 56(84) bytes of data.

64 bytes from mail.example.com (192.168.1.200): icmp_seq=1 ttl=64 time=2.91 ms

64 bytes from mail.example.com (192.168.1.200): icmp_seq=2 ttl=64 time=0.141 ms

4. 关闭selinux

# vi /etc/selinux/config

SELINUX=disabled

重启系统生效

#reboot

5.安装iRedMail

# mkdir /software

# cd /software

# wget http://www.iredmail.com/iRedMail-0.8.5.tar.bz2

# tar jxvf iRedMail-0.8.5.tar.bz2

修改/software/iRedMail-0.8.5/pkgs/get_all.sh文件中所有iredmail.org为iredmail.com

# vi /software/iRedMail-0.8.5/pkgs/get_all.sh

:%s/iredmail.org/iredmail.com/g

# cd /software/iRedMail-0.8.5

# chmod +x iRedMail.sh

执行安装,按照它所给的提示操作吧

# ./iRedMail.sh

我这里报了一个错误

< INFO > Validate packages …md5sum: misc/phpMyAdmin-4.0.4.1-all-languages.tar.bz2: No such file or directory
misc/phpMyAdmin-4.0.4.1-all-languages.tar.bz2: FAILED open or read
md5sum: WARNING: 1 of 6 listed files could not be read
[ FAILED ]
< ERROR > MD5 check failed. Script exit …

出现错误都再次执行安装:# ./iRedMail.sh

 

图一,正常运行后,出现下图,选择yes:

1

图二,下图要求填入mail存放路径,选择默认

2

图三,下图选择安装类型,我选择LDAP功能较Mysql完善

3

图四,下图按照例子填入你的域名

4

图五,下图输入LDAP的root密码

5

图六,填入mysql数据库的密码

6

图七,填入你的域名,非二级域名

7

图八,填入管理员postmaster@example.com的密码

8

图九,选在Next

9

图十,配置完成,输入y继续安装

10

接下来还会询问配置,全部输入y继续

< Question > File: /etc/sysconfig/iptables, with SSHD port: 22. [Y|n]Y

< INFO > Copy firewall sample rules: /etc/sysconfig/iptables.

< Question > Restart firewall now (with SSHD port 22)? [y|N]Y

< Question > Would you like to use MySQL configuration file shipped within iRedMail now?

< Question > File: /etc/my.cnf. [Y|n]Y

< INFO > Copy MySQL sample file: /etc/my.cnf.

< INFO > Enable SSL support for MySQL server.

图十一,看到一下信息表示已安装完成,重启系统生效

11

按照信息已经给出登录地址及管理地址信息等:

* – Webmail: httpS://mail.example.com/mail/

* – Admin Panel (iRedAdmin): httpS://mail.example.com/iredadmin/

*   + Username: postmaster@example.com, Password: 123456

 

Webmail 登录时可填写@符号前用户名也可填写完整邮箱名,即即可填写postmaster也可填postmaster@example.com 

使用postmaster登录Webmail后便有两封系统邮件,包括系统的一些关键配置文件位置,用户名密码等信息,请仔细查看。

iRedAdmin登录时必须填写完成邮箱名

 

 

 

发表评论

*