iRedMail是个专门用于Redhat/CentOS下的企业Mail服务集成安装软件包,本来只要有干净的系统就可以轻松安装,无奈国内网络状况和墙头众多,安装中也有很多问题需要解决,下面记录的都是我安装之中所遇到问题,特记录下来备忘。

一、安装

1,首先要替换系统的yum源到国内的镜像源,否则用yum安装软件太痛苦了,我用的是163的yum源服务,参见CentOS YUM 国内镜像

2,不要安装php,apache之类的软件,保持系统尽量干净,iRedMail安装过程中会自动下载并安装所需软件包,否则版本不对还造成麻烦,辛辛苦苦的设置也会被覆盖掉!

3,iRedMail.org不明原因被墙,幸亏有了国内镜像服务,所以要访问iredmail.com下载安装包。

4,iRedMail安装包解开后,pkgs/get_all.sh这个脚本中都是指向iredmail.org,使用编辑器全部替换为iredmail.com。然后在执行这个脚本。

5,执行主目录下的iRedMail.sh时,根据我的经验不可能一次执行成功,主要有三个问题引起:

  1)访问国外网站不够快,造成超时报错,重复执行脚本即可,安装脚本会从上次断点开始执行(万幸有此功能!)

  2)脚本执行中可能回报YUM BaseUrl之类的错误,需要编辑/etc/yum.repos.d/CentOS_Base.repo,将文件里面的“$releasever”全部替换为“6”。(注:不包括引号,6就是系统的主版本)

[root@mail2 iRedMail-0.8.]# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base - .com
baseurl=http://mirrors.163.com/centos/6/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#gpgcheck=
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#
##released updates
#[updates]
#name=CentOS-$releasever - Updates - .com
#baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
##mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#gpgcheck=
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#
##additional packages that may be useful
#[extras]
#name=CentOS-$releasever - Extras - .com
#baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
##mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#gpgcheck=
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#
##additional packages that extend functionality of existing packages
#[centosplus]
#name=CentOS-$releasever - Plus - .com
#baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
##mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#gpgcheck=
#enabled=
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#
##contrib - packages by Centos Users
#[contrib]
#name=CentOS-$releasever - Contrib - .com
#baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/
##mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#gpgcheck=
#enabled=
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

  3)iRedMail.sh脚本还会安装一个epel.repo,里面启用了几个镜像列表设置,这可能也会导致报错,打开此文件,取消baseurl前面的注释,然后注释掉mirrorlist这一行。

[root@mail2 iRedMail-0.8.]# cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux - $basearch
baseurl=http://mirrors.163.com/centos/6/os/$basearch/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=
gpgcheck=

二、其他

1,roundcube webmail 左上角logo替换,在/var/www/roundcubemail-v.v.v/skins/xxx/includes/header.html

2,iredadmin可以管理多个域名,配合域名解析和mx记录设置即可。

CentOS6.5下安装iRedMail中需要解决的问题的更多相关文章

  1. Centos6.4下安装protobuf-c问题及解决办法

    1.前言 protobuf是Google提供的结构持久化工具,类型XML,但要比XML更加灵活,效率要高.protobuf当初支持C++.JAVA和Python,后来有了支持C语言的Protobuf- ...

  2. CentOS6.5下安装Apache2.4+PHP7

    CentOS6.5下安装Apache2.4+PHP7 http://blog.csdn.net/along602/article/details/42695779 http://www.th7.cn/ ...

  3. coreseek/sphinx CentOS6.4下安装

    一.在CentOS6.4下安装coreseek之前需要预先安装以下软件 1.打开终端 输入 su 获取管理员权限 2.输入命令 yum install make gcc g++ gcc-c++ lib ...

  4. centos6.7下安装配置vnc

    vnc是一款使用广泛的服务器管理软件,可以实现图形化管理,下面简单介绍一下如何在centos6.7下安装vnc. 1.安装vncserver yum install tigervnc tigervnc ...

  5. CentOS6.5下安装apache2.2和PHP 5.5.28

    CentOS6.5下安装apache2.2 1. 准备程序 :httpd-2.2.27.tar.gz 下载地址:http://httpd.apache.org/download.cgi#apache2 ...

  6. 在CentOS6.8下安装Docker

    在CentOS6.8下安装Docker 一.查看系统版本 [root@localhost opt]# uname -a Linux localhost.localdomain -.el6.x86_64 ...

  7. 建站笔记1:centos6.5下安装mysql

    近期买了个域名,想要玩玩自己建站点:接下来遇到的问题都会一次记录下来.以备自己以后复习查看: 首先建站方案选择: wordPress +centos6.5 +mysql; server买的:搬瓦工最低 ...

  8. CentOS6.5下安装JDK1.7+MYSQL5.5+TOMCAT7+nginx1.7.5环境安装文档

    ----------------CentOS6.5下安装JDK1.7+MYSQL5.5+TOMCAT7+nginx1.7.5环境安装文档----------------------- [JDK1.7安 ...

  9. 【转载】CentOS6.5_X64下安装配置MongoDB数据库

    [转载]CentOS6.5_X64下安装配置MongoDB数据库 2014-05-16 10:07:09|  分类: 默认分类|举报|字号 订阅      下载LOFTER客户端 本文转载自zhm&l ...

随机推荐

  1. centos 配置subversion svn

    Subversion是一个自由,开源的版本控制系统. 1.安装: yum install subversion 2.配置 mkdir -p /var/svn/svnrepos #新建文件夹 svnad ...

  2. [datatable]排序时指定某列不可排序

    datatable是一个jquery扩展的表格插件.其提供了强大的表格功能. 官方地址:http://www.datatables.net/ 在官方示例中,对于表格的是否可排序是在初始化中设置的一个值 ...

  3. Java Web项目中使用Freemarker生成Word文档

    Web项目中生成Word文档的操作屡见不鲜.基于Java的解决方式也是非常多的,包含使用Jacob.Apache POI.Java2Word.iText等各种方式,事实上在从Office 2003開始 ...

  4. EnumUtil

    EnumUtil.cs using System; using System.Collections.Generic; using System.ComponentModel; using Syste ...

  5. mybatis example 使用AND 和OR 联合查询

    mybatis example 使用AND 和OR 联合查询 ViewPsmsgconsultExample example=new ViewPsmsgconsultExample(); ViewPs ...

  6. tf变换(1)

    TF库的目的是实现系统中任一个点在所有坐标系之间的坐标变换,也就是说,只要给定一个坐标系下的一个点的坐标,就能获得这个点在其他坐标系的坐标. 使用tf功能包,a. 监听tf变换: 接收并缓存系统中发布 ...

  7. WebRTC网关服务器单端口方案实现

    标准WebRTC连接建立流程 这里描述的是Trickle ICE过程,并且省略了通话发起与接受的信令部分.流程如下: 1) WebRTC A通过Signal Server转发SDP OFFER到Web ...

  8. 微信小程序——template的循环嵌套

    上一篇我们有写到 template的使用方法 .在实际运用中,需要做到template里面再嵌套一层循环.我们先看一下数据结构: 模板是用于循环list,现在的需求是在模板里面嵌套一个orderIte ...

  9. Qt网络编程QTcpServer和QTcpSocket的理解

    前一段时间通过调试Qt源码,大致了解了Qt的事件机制.信号槽机制.毕竟能力和时间有限.有些地方理解的并不是很清楚. 开发环境:Linux((fedora 17),Qt版本(qt-everywhere- ...

  10. iOS 基础入门--Bull' Eye 小游戏 

      说明   Bull's Eye小游戏是http://www.raywenderlich.com/store/ios-apprentice里非常酷的入门demo 跟着该教程一步步做下来便有了 ...