Linux与云计算——第二阶段Linux服务器架设

第七章:网站WEB服务器架设—电子邮件WEB端搭建SquirrelMail


WEBMAIL:SquirrelMail

使用SquirrelMail配置一个基于WEB的邮件传输系统 

www.example.com : SquirrelMail installed http Server

mail.example.com : SMTP/IMAP Server

[1] 配置SMTP服务器

[2] 配置IMAP服务器

[3] 给http服务器安装PHP

[4] 配置SSL

[5] 安装和配置SquirrelMail.

[root@client ~]# yum -y install squirrelmail

[root@client ~]# curl -O http://www.squirrelmail.org/plugins/compatibility-2.0.16-1.0.tar.gz

[root@client ~]# curl -O http://www.squirrelmail.org/plugins/empty_trash-2.0-1.2.2.tar.gz

[root@client ~]# ls

[root@client ~]# tar zxvf compatibility-2.0.16-1.0.tar.gz -C /usr/share/squirrelmail/plugins

[root@client ~]# tar zxvf empty_trash-2.0-1.2.2.tar.gz -C /usr/share/squirrelmail/plugins

[root@client ~]# tar zxvf secure_login-1.4-1.2.8.tar.gz -C /usr/share/squirrelmail/plugins

[root@client ~]# rm -f ./*.tar.gz

# 运行配置脚本

[root@client ~]# /usr/1share/squirrelmail/config/conf.pl

SquirrelMail Configuration : Read: config.php (1.4.0)

---------------------------------------------------------

Main Menu --

1.  Organization Preferences

2.  Server Settings

3.  Folder Defaults

4.  General Options

5.  Themes

6.  Address Books

7.  Message of the Day (MOTD)

8.  Plugins

9.  Database

10. Languages

 

D.  Set pre-defined settings for specific IMAP servers

 

C   Turn color off

S   Save data

Q   Quit

 

Command >> 1     

1---->5--->/webmail  修改登出页面

2---->1---->example.com(修改域名) ---->3---->2(修改SMTP发送邮件---->A----> 4---->mail.example.com(定义IMAP服务器) ---->8---->dovecot修改dovecot---->9---->detect---->B---->4---->mail.example.com---->7---->y---->login---->n

4---->7---->y

8---->7---->8---->15---->q---->y

 

You might want to test your configuration by browsing to

http://your-squirrelmail-location/src/configtest.php

Happy SquirrelMailing!

[root@client ~]# cp /usr/share/squirrelmail/plugins/secure_login/config.sample.php /usr/share/squirrelmail/plugins/secure_login/config.php

[root@client ~]# vim /usr/share/squirrelmail/plugins/secure_login/config.php

# line 24: 修改 (登陆后依然使用SSL连接)

$change_back_to_http_after_login = 0;

[root@client ~]# systemctl restart httpd

[6] http://(服务器名或地址/)/webmail/', 然后使用用户账户登陆

[7] Just logined. Try to send or receive messages on here.

在邮件服务器上创建两个用户,登录系统然后互相发送一下邮件尝试一下