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

简介: 配置openwebmail       通过修改配置文件openwebmail.conf,实现个性化邮箱定制。用户可以自由的更改邮箱logo、域名、容量 、签名等信息。1、重定向index,快速打开邮箱。
配置openwebmail
       通过修改配置文件openwebmail.conf,实现个性化邮箱定制。用户可以自由的更改邮箱logo、域名、容量 、签名等信息。
1、重定向index,快速打开邮箱。将下面的内容复制到“/var/www/html/index.html”,这样就可以直接通过“127.0.0.1”打开邮箱 
       [root@localhost openwebmail]#  gedit /var/www/html/index.html
        <html>
       <head><meta http-equiv="Refresh" content="0;URL=/cgi-bin/openwebmail/openwebmail.pl">
       </head>
       <body onload="window.open('/cgi-bin/openwebmail/openwebmail.pl','_top')">
       </body>
       </html>


2、修改登录logo。将“ /var/www/html/openwebmail/images/openwebmail.gi f”替换成自己的logo,注意名字不要变
       

3、更改logo链接。登录框上方的logo有一个默认的链接地址,我们可以通过修改配置文件中的参数“logo_link”来使它重定向到我们自己的网站
       [root@localhost openwebmail]#  gedit /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
       logo_link http://www.baidu.com

4、修改发件人的域名。在配置文件中有一个参数domainnames,我们可以将它改为自己的邮箱域名。这样在发件的时候,就会显示出正确的邮箱域名。 
       [root@localhost openwebmail]#  gedit /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
        domainnames    mailsrv.david.cn
       修改前
       
       修改后
       

5、修改附件大小限制。附件太大会降低服务器的效率,因此我们必须合理的设置附件的大小,可以通过参数attlimit来设置。 
       [root@localhost openwebmail]#  gedit /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
        attlimit    10
       修改之后,发送一个邮件,结果如下
       

6、允许root登录。由于root用户的权利太大,因此默认不允许root登录。我们可以通过参数allowed_rootloginip来设置允许某个ip地址使用root登录,这样相对来说安全一些
       [root@localhost openwebmail]#  gedit /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
        allowed_loginip   192.168.0.112    //只允许指定的ip登录root
       #allowed_loginip   all      //允许所有的ip地址使用root登录

       修改前
       
       修改后
       

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:                                               [确定]
       正在启动 httpd:httpd: 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、设置个人模板
       
相关实践学习
基于函数计算快速搭建Hexo博客系统
本场景介绍如何使用阿里云函数计算服务命令行工具快速搭建一个Hexo博客。
相关文章
|
1天前
|
监控 安全 Linux
Linux系统之安装ServerBee服务器监控工具
【4月更文挑战第22天】Linux系统之安装ServerBee服务器监控工具
32 2
|
1天前
|
Ubuntu Linux 测试技术
Linux(32)Rockchip RK3568 Ubuntu22.04上部署 Docker: 详细配置与功能测试(下)
Linux(32)Rockchip RK3568 Ubuntu22.04上部署 Docker: 详细配置与功能测试
19 1
|
1天前
|
运维 网络协议 Linux
Linux(28) Linux双网卡配置为连接到Linux主机的PC提供外网访问
Linux(28) Linux双网卡配置为连接到Linux主机的PC提供外网访问
11 1
|
2天前
|
Ubuntu 网络协议 Linux
Linux(20) Ubuntu 20.04 网络接口自动切换路由配置
Linux(20) Ubuntu 20.04 网络接口自动切换路由配置
23 0
|
2天前
|
Linux
Linux(9)Debain EC25 quectel-CM usbnet0开机自动联网配置
Linux(9)Debain EC25 quectel-CM usbnet0开机自动联网配置
15 0
|
5天前
|
网络协议 安全 Linux
IDEA通过内网穿透实现固定公网地址远程SSH连接本地Linux服务器
IDEA通过内网穿透实现固定公网地址远程SSH连接本地Linux服务器
|
5天前
|
Linux 网络安全 开发工具
【GitLab私有仓库】在Linux上用Gitlab搭建自己的私有库并配置cpolar内网穿透
【GitLab私有仓库】在Linux上用Gitlab搭建自己的私有库并配置cpolar内网穿透
|
5天前
|
缓存 安全 Ubuntu
Linux配置代理上网
如何配置Linux代理
14 1
|
8天前
|
安全 Java 网络安全
对象存储oss使用问题之使用oss上服务器后显示服务异常如何解决
《对象存储OSS操作报错合集》精选了用户在使用阿里云对象存储服务(OSS)过程中出现的各种常见及疑难报错情况,包括但不限于权限问题、上传下载异常、Bucket配置错误、网络连接问题、跨域资源共享(CORS)设定错误、数据一致性问题以及API调用失败等场景。为用户降低故障排查时间,确保OSS服务的稳定运行与高效利用。
12 0
|
8天前
|
存储 关系型数据库 MySQL
Linux服务详解
Linux服务详解
22 0