網路郵局 @penWebMail
官方網站:http://www.openwebmail.org/
官方網站有提供 yum 安裝流程,請參考官方安裝流程
安裝
# wget http://openwebmail.org/openwebmail/download/redhat/rpm/release/openwebmail.repo -P /etc/yum.repos.d/ //-P 是指定路徑
# yum install -y openwebmail perl-CGI
# /var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
Please change '/var/www/cgi-bin/openwebmail/etc/dbm.conf' from // 出現警告訊息,請修改 dbm.conf 的內容
dbm_ext .db
dbmopen_ext .db
dbmopen_haslock no
to
dbm_ext .pag
dbmopen_ext none
dbmopen_haslock no
And execute '/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init' again! // 修改完成後再執行一次
ps: If you are running openwebmail in persistent mode,
don't forget to 'touch openwebmail*.pl', so speedycgi
will reload all scripts, modules and conf files in --init.
# /var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
creating db /var/www/cgi-bin/openwebmail/etc/maps/b2g ...done.
creating db /var/www/cgi-bin/openwebmail/etc/maps/g2b ...done.
creating db /var/www/cgi-bin/openwebmail/etc/maps/lunar ...done.
Creating UTF-8 locales...
langconv ar_AE.CP1256 -> ar_AE.UTF-8
langconv ar_AE.ISO8859-6 -> ar_AE.UTF-8
langconv bg_BG.CP1251 -> bg_BG.UTF-8
langconv ca_ES.ISO8859-1 -> ca_ES.UTF-8
langconv cs_CZ.ISO8859-2 -> cs_CZ.UTF-8
...done.
Welcome to the OpenWebMail!
This program is going to send a short message back to the developer,
so we could have the idea that who is installing and how many sites are
using this software, the content to be sent is:
OS: Linux 2.6.32-279.11.1.el6.x86_64 x86_64
Perl: 5.010001
WebMail: OpenWebMail 2.53 20080123
Send the site report?(Y/n) y
sending report...
Thank you.
修改@penWebMail組態檔
# vim /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
enable_spamcheck yes
enable_learnspam yes
webdisk_rootpath /
webdisk_lshidden yes
# service httpd restart
使用瀏覽器登入,看到畫面很開心 XD,但登入後慘劇就發生了(登入時無法使用 root 帳密,因為預設是拒絕管理者登入)。
被 SELinux 擋住了,雖然官方文件有說明,要將 SELinux 關閉或改成 Permissive,但這樣系統的安全性就降低了
解決 SELinux 問題,引用以下網址內容 http://openwebmail.acatysmoof.com/archive/html/owm-users/owm-users.200512/msg00007.html
解決問題的指令如下:
# chcon -u system_u /var/log/openwebmail.log
# chcon -t httpd_sys_script_rw_t /var/log/openwebmail.log
# chcon -t httpd_unconfined_script_exec_t /var/www/cgi-bin/openwebmail/openwebmail*
沒有留言:
張貼留言