iredmail 0.9 Centos 国内安装报错解决

[root@mx iRedMail-0.9.4]# bash iRedMail.sh 
[ INFO ] Install package: dialog
[ INFO ] Installing package(s): dialog
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.skyshe.cn
 * extras: mirrors.pubyun.com
 * updates: mirrors.btte.net
http://iredmail.org/yum/rpms/6/repodata/repomd.xml: [Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: iRedMail. Please verify its path and try again
[ INFO ] Checking configuration file: /root/iRedMail-0.9.4/config ...[ INFO ] Found, but not finished.
/root/iRedMail-0.9.4/dialog/config_via_dialog.sh: line 42: dialog: command not found
[ INFO ] Exit.

报错信息如上

安装参考官方路径:

http://www.iredmail.com/docs/install.iredmail.on.rhel.html#install-iredmail-on-red-hat-enterprise-linux-centos



安装到此处时,无法按官方继续安装

Start iRedMail installer

It's now ready to start iRedMail installer, it will ask you several simple questions, that's all required to setup a full-featured mail server.

# cd /root/iRedMail-x.y.z/
# bash iRedMail.sh

Note to Chinese Users

Our domain name iredmail.org has been blocked in mainland China for years (since Jun 04, 2011), please run command below to finish the installation:

IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh

Additional variables are:

  • EPEL repo: IREDMAIL_EPEL_MIRROR='http://mirrors.aliyun.com/epel'

  • SOGo repo: SOGO_PKG_MIRROR='http://42.159.241.31/SOGo'




经过苦苦寻觅,解决方法为:

编辑 vi /etc/yum.repos.d/iRedMail.repo 文件,将org改为com,如下

[root@mx iRedMail-0.9.4]# vi /etc/yum.repos.d/iRedMail.repo 
[iRedMail]
name=iRedMail
baseurl=http://iredmail.com/yum/rpms/6/
enabled=1
gpgcheck=0
#exclude=postfix*
exclude=postfix*



baseurl=  改为 baseurl=http://iredmail.com/yum/rpms/6/




你可能感兴趣的:(error,centos6,iredmail)