找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 37|回复: 0

配置Openwebmail

[复制链接]

55

主题

27

回帖

240

积分

管理员

积分
240
发表于 4 天前 | 显示全部楼层 |阅读模式
如上配置完Sendmail邮件服务器,可以通过Outlook、Foxmail收发邮件,如果需要WEB页面收发邮件,可以基于Openwebmail来实现。例如访问:http://mail.jfedu.net/,以用户名和密码登录,进行邮件的发送与收取,则需配置openwebmail软件,配置如下:

Openwebmail服务安装

cd /etc/yum.repos.d

wget -q http://openwebmail.org/openwebmail/download/redhat/rpm/release/openwebmail.repo

yum install openwebmail -y

Openwebmail配置:

yum install httpd httpd-devel -y

/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init





vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf

domainnames jfedu.net

default_language zh_CN.GB2312

default_iconset Cool3D.Chinese.Simplified

/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init

通过浏览器访问openwebmail,访问如图:

http://113.209.20.234/cgi-bin/openwebmail/openwebmail.pl







SendMail外网域名配置,配置方法如下:











同时配置Nginx rewrite规则,开启访问mail.jfedu.net直接访问Openwebmail页面,规则添加如下:

RewriteEngine On

ProxyPreserveHost On

RewriteRule ^/$ http://mail.jfedu.net/cgi-bin/openwebmail/openwebmail.pl [P,L,NC]



懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表