Linux與雲計算——第二階段Linux服務器架設 第七章:網站WEB服務器架設—電子郵件WEB端搭建SquirrelMail

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.

在郵件服務器上創建兩個用戶,登錄系統然後互相發送一下郵件嘗試一下



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章