postfix+devecot+openwebmail+apache

 (1)、查看系统下有没有安装sendmail邮件系统
  netstat -nutlp | grep 25
  lsof -i | grep 25
(2)、关闭安装的邮件系统
  /etc/rc.d/init.d/sendmail stop
  chkconfig sendmail off
  chkconfig sendmail --list
(3)、安装postfix
  yum -y install postfix
  yum -y install cyrus-sasl
  yum -y install dovecot
  
  不关闭selinux testsaslauthd通不过
  在/etc/sysconf下有一个SeLinux文件,使用vi打开,更改其中的SELINUX项的值就可以了。
  SELINUX=disabled 禁用SeLinux,不是SELINUX = disable
  SELINUX=enforcing 使用SeLinux
  testsaslauthd -u root -p password
(4)、安装apache
  查看有没有安装gcc
  rpm -qa | grep gcc
  yum -y install gcc
  
   wget http://labs.xiaonei.com/apache-mirror/httpd/httpd-2.2.14.tar.gz
  tar -xzvf httpd-2.2.14.tar.gz
  cd httpd-2.2.14
  
  ./configure --prefix=/usr/local/apache22
  make
  make install
(5)、安装openwebmail
 yum -y install openwebmail

(6)、整合postfix+dovecot+openwebmin
  把Postfix+Dovecot+Openwebmail 三者个格式统一下就行了
  1.postfix 配置 main.cf
  mail_spool_directory = /var/spool/mail
  2.Dovecot 配置 Dovecot.conf
  mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u
  3.Openwebmail.conf
  mailspooldir /var/spool/mail

(7)、加速邮件服务器:
   (1)使用speedcgi来加速

    针对Openwebmail速度慢的缺点,可以使用speedcgi来加速。
    # yum -y install perl-CGI-SpeedyCGI,安装完后接着执行命令:“speedy_convert”,这个命令会自动设定已安装的 OpenWebMail 以便让其以 SpeedyCGI 方式执行。

   (2)启动HTTP资料压缩传送
      目前openwebmail的版本是openwebmail-2.53,这个版本默认是已启动HTTP资料压缩传送功能的,在登录openwebmail时会出现“HTTP资料压缩传送”选项。这样可以加速邮件服务器运行速度。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值