cmail 在redhat5.4 x64位安装

1.安装附件软件包 gamin.
包在iso的server下。执行如下命令  rpm -ivh gamin*.rpm
2.解压cmail软件
tar -xvf Cmail*.tar.gz;

3.进入解析文件setup包下,执行install命令。
./install

4.启动cmail
进去安装包的bin下。
/Camil/bin/cmail start

可能会有两个错误。
如下:

httpd: Syntax error on line 292 of /Cmail/etc/webmail.conf: Cannot load /Mailserver/apache/modules/libphp5.so into server: /Mailserver/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
/Cmail/init/webmail startssl: httpd could not be started

/Cmail/smtp/usr/sbin/mailserver: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory


5.解决这两个错误。
  a.我的原因是su_linux阻止了cmail的操作。并且提示解决这个错误的命令

chcon -t textrel_shlib_t '/Mailserver/apache/modules/libphp5.so'
执行即可。
b.2) 找不到libpcre.so.0:文件。原因可能是我用的64位系统,我查看了一下。我的libpcre.so.0在/lib64下。Lib下没有这个。搜寻了一下,在cmail下的libext有这个包,copy到lib下。
6.关闭cmail.在启动成功了。

防止忘记,记录如上。

猜你喜欢

转载自qsx1982-126-com.iteye.com/blog/907874