安装openwebmail

 openwebmail提供了可视化的邮件管理系统,它运行在Apache环境下。

1、安装必备软件

[root@localhost ~]# yum install y perl-TextIconv perl-CGI perl-CPAN perl-suidper perl-YAML

2、在官网(http://openwebmail.org/openwebmail/download/release/)下载openwebmail,解压

[root@localhost ~]# tar xvf openwebmail-2-53.tar

3、解压后得到两个目录“cgi-bin”和“data”,而且这两个目录下都会包含一个“openwebmail”目录。其中cgi-bin是要执行的程序,而data是数据部分。因此在后面我们要改的地方都集中在cgi-bin目录下的openwebmail

1)将cgi-bin下的openwebmail移动到网页cgi默认目录下

[root@localhost ~]# mv cgi-bin/openwebmail /var/www/cgi-bin/ 

2)将data复制到“/var/www”

[root@localhost ~]# cp r data/ /var/www/ 

3)将data下的openwebmail移动到”/var/www/html/“

[root@localhost ~]# mv data/openwebmail /var/www/html/

4、修改cgi-bin下的openwebmail权限

[root@localhost ~]# chmod R 777 /var/www/cgi-bin/openwebmail/

5、修改suidperl的权限

[root@localhost ~]# chmod 4555 /usr/bin/suidperl

6、修改配置文件openwebmail.conf,改变参数ow_cgidir、ow_htmldir,它们一个是网页默认目录,一个是数据默认目录

[root@localhost openwebmail]# gedit etc/openwebmail.conf

domainnames       auto

auth_module       auth_unix.pl

mailspooldir      /var/mail

ow_cgidir     /var/www/cgi-bin/openwebmail       //网页程序路径

ow_cgiurl     /cgi-bin/openwebmail

ow_htmldir    /var/www/data/openwebmail          //网页数据路径

ow_htmlurl    /openwebmail

logfile           /var/log/openwebmail.log

7、修改身份认证文件,这个文件需要从defaults目录拷贝,然后修改两个参数“passwdfile_enctypted“和”passwdmkdb“

[root@localhost openwebmail]# cp etc/defaults/auth_unix.conf etc/

[root@localhost openwebmail]# gedit etc/auth_unix.conf

passwdfile_encrypted/etc/shadow

passwdmkdb    none

8、修改dbm文件,首先从defaults目录下拷贝,然后改变参数“dbmopen_ext“和”dbmopen_haslock“

[root@localhost openwebmail]# cp etc/defaults/dbm.conf etc/

dbm_ext           .pag

dbmopen_ext       none

dbmopen_haslock      no

9、初始化openwebmail服务

[root@localhost openwebmail]# ./openwebmail-tool.pl --init

creating db /var/www/cgi-bin/openwebmail/etc/maps/b2g ...done.

...done.

Welcome to the OpenWebMail!

Send the site report?(Y/n) yes     //这里必须输入yes

sending report...

Thank you.

10、重启Apache

[root@localhost openwebmail]# service httpd restart

停止httpd                                              [确定]

正在启动 httpdhttpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName

                            [确定]

11、在浏览器输入“127.0.0.1/cgi-bin/openwebmail/openwebmail.pl“,可以看到下面的登录窗口

12、在登录窗口输入一个已经存在的用户名和密码,由于是第一次登录,我们需要做一些设置

13、设置个人模板

Linux服务器---邮件服务openwebmail安装的更多相关文章

  1. Linux服务器---邮件服务postfix安装

    安装postfix postfix是一个快速.易于管理.安全性高的邮件发送服务,可以配合dovecot实现一个完美的邮箱服务器. 1.安装postfix [root@localhost ~]# rpm ...

  2. Linux服务器---邮件服务openwebmail配置

    配置openwebmail 通过修改配置文件openwebmail.conf,实现个性化邮箱定制.用户可以自由的更改邮箱logo.域名.容量 .签名等信息. 1.重定向index,快速打开邮箱.将下面 ...

  3. Linux服务器---邮件服务spam

    安装spam spam(SpamAssassin)利用perl来进行文字分析,他会检测邮件的标题.内容.送信人,这样就可以过滤出垃圾邮件 1.安装spam.由于spam的依赖太多,用户一定要使用yum ...

  4. netcore一键部署到linux服务器以服务方式后台运行

    @font-face { font-family: octicons-link; src: url("data:font/woff;charset=utf-8;base64,d09GRgAB ...

  5. Linux服务器命令行模式安装Matlab2014a

    Linux服务器命令行模式安装Matlab2014a,有需要的朋友可以参考下. 0.下载安装包 下载Matlab2014a for Linux安装包的ISO镜像文件(感谢万能的度娘)以及破解包(下载地 ...

  6. Linux服务器,服务管理--systemctl命令详解,设置开机自启动

    Linux服务器,服务管理--systemctl命令详解,设置开机自启动 syetemclt就是service和chkconfig这两个命令的整合,在CentOS 7就开始被使用了. 摘要: syst ...

  7. 使用Linux服务器来通过网络安装和激活Windows 7 —— 一些基本原理

    使用Linux服务器来通过网络安装和激活Windows 7 -- 一些基本原理 https://www.pufengdu.org/blog/?p=372

  8. postfix 邮件服务的安装及详解

    该实验系统:cetnos 6.5 sendmail:性能好,设置复杂,适合老手 qmail:体积小260+k ,模块化.需要做二次开发,适合对邮件性能有要求的 postfix:前身是sendmail, ...

  9. Linux服务器---邮件服务器dovecot

    安装dovecot Dovecot是CentOS系统中著名的POP3/IMAP服务器实现.POP3/IMAP是从邮件服务器中读取邮件时使用的协议,POP3将邮件全部从服务器中拖取下来:IMAP则每次从 ...

随机推荐

  1. dedecms怎样调用指定id文章?

    前面我们聊了帝国cms如何调用指定id的文章到首页,作为同行的织梦cms应该也是可以实现的吧?那么,dedecms怎样调用指定id文章呢?使用idlist直接调用指定的ID这样的方法是比较好的.官方给 ...

  2. git的介绍

    1.Git工作区域 2.向仓库中添加文件流程 三.Git初始化及仓库创建和操作 1.Git安装之后需要进行一些基本信息设置 a.设置用户名:git  config -- global  user.na ...

  3. sap 提供服务

    1: https://blog.csdn.net/stone0823/article/details/81661261?utm_source=blogxgwz1 https://blog.csdn.n ...

  4. strncat、strcat

    strncat函数 2007年03月15日 20:32:00 阅读数:13676 函数原型:extern char *strncat(char *dest,char *src,int n) 参数说明: ...

  5. 以太坊nonce

    以太坊系列(ETH&ETC)在发送交易有三个对应的RPC接口,分别是ethsendTransaction.ethsendRawTransaction和personal_sendTransact ...

  6. 【Python】-NO.98.Note.3.Python -【Python3 解释器、运算符】

    1.0.0 Summary Tittle:[Python]-NO.98.Note.3.Python -[Python3 解释器] Style:Python Series:Python Since:20 ...

  7. [LeetCode] 506. Relative Ranks_Easy tag: Sort

    Given scores of N athletes, find their relative ranks and the people with the top three highest scor ...

  8. 一个简单的sel server 函数的自定义

    创建自定义函数:use 数据库名gocreate function 函数名(@pno int)returns intasbegin  declare @a int   if not exists(se ...

  9. glibc降级尝试失败-兼使用另一个版本的glibc

    https://cnodejs.org/topic/56dc21f1502596633dc2c3dc 这个介绍的是升级的情况.降级,网上说很难.因为用yum是无法降级安装的.我仿造升级的方式,make ...

  10. python快速开发Web之Django

    以前写测试框架,要么是纯python代码驱动的,要么是WinForm界面的框架,多人操作并不适合. 就想用python写个Web版的,于是想到了Web快速开发的框架Flask和Django两个 个人觉 ...