centos7 與 openwebmail 版本
在升級為 centos7 後 openwebmail 2.53 版就無法使用,而網上說的 3.0 beta 版,在使用時有通訊錄無法增加修改的問題,還有某些網站寄來的信件,附件檔無法開啟,及無法轉寄的問題,一直無法解決,後來看到為了CentOS7出的 2.54 版,想說裝裝看,結果竟然解決了上面無法開啟及通訊錄的問題,參考某些網站安裝 3.0 的方式,修改一些符合自己的方式,方法如下:
- vi /etc/selinux/config (改為disabled)
- cd /etc/yum.repos.d/ ; wget ftp://openwebmail.org/pub/openwebmail/el7/openwebmail-el7.repo
- yum --downloadonly --downloaddir=/usr/local/src install openwebmail perl-CGI-SpeedyCGI perl-Authen-PAM perl-HTML-Template
- cd /usr/local/src/ ; rpm -Uvh *.rpm (再來安裝其它相關套件)
- yum install openwebmail ( 直接安裝 2.54 版本)
- mv /var/www/data/openwebmail /var/www/html (將網頁直接移到 html 下)
- cp /usr/bin/speedy /usr/bin/speedy_suidperl ; chmod 4555 /usr/bin/speedy_suidperl
- cd /var/www/cgi-bin/openwebmail (到 openwebmail目錄)
- sed -i -e 's/perl -T/speedy_suidperl -T -- -T\/tmp\/speedy/' openwebmail*.pl# vi etc/openwebmail.conf (因為上面將套件目錄作修改)
- vi etc/openwebmail.conf
domainnames www.fhsh.tp.edu.tw
auth_module auth_pam.pl
mailspooldir /var/spool/mail
ow_cgiurl /cgi-bin/openwebmail
ow_htmldir /var/www/html/openwebmail
ow_htmlurl /openwebmail
logfile /var/log/openwebmail.log (以下不改)(以下不改) - vi etc/dbm.conf
dbm_ext .pag
dbmopen_ext none
dbmopen_haslock no - ./openwebmail-tool.pl --init (到這裡差不多結束,但有些權限必須改如下)
- 設定OpenWebMail幾個目錄內幾個pl檔案設定權限為777,再將wrapsuid.pl設為660,此權限千萬一定要設定,否則會無法開啟OpenWebMail登入畫面。
# chmod 777 ./misc/tools/wrapsuid/wrapsuid.pl ./misc/tools/wrapsuid/wrapsuid.pl /var/www/cgi-bin/openwebmail/openwebmail*.pl
# chmod 660 ./misc/tools/wrapsuid/wrapsuid.pl
將OpenWebMail主程式目錄下的pl檔案權限皆設定為4755,不要懷疑就是4755
# chmod 4755 openwebmail*.pl
建立OpenWebMail的紀錄檔,並設定記錄檔權限。
# touch /var/log/openwebmail.log
# chown root.mail /var/log/openwebmail.log
設定登入session目錄的權限為777
# chmod -R 777 /var/www/cgi-bin/openwebmail/etc/sessions/
參考自: http://www.wkb.idv.tw/moodle/mod/page/view.php?id=7831&lang=zh_tw
迴響
centos7 與 openwebmail 版本 | 豬窩
Hi there! I know this is kinda off topic but I'd figured I'd ask.
Would you be interested in exchanging links or maybe guest writing a blog
article or vice-versa? My site covers a lot of the same topics as yours and I think we could greatly benefit from each other.
If you happen to be interested feel free to send me an email.
I look forward to hearing from you! Fantastic blog by
the way!
centos7 與 openwebmail 版本 | 豬窩
Great article, just what I wanted to find.
centos7 與 openwebmail 版本 | 豬窩
Today, I went to the beach front with my kids.
I found a sea shell and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She placed the shell to her ear and screamed.
There was a hermit crab inside and it pinched her ear.
She never wants to go back! LoL I know this is entirely off topic but I had to tell someone!
centos7 與 openwebmail 版本 | 豬窩
Amazing issues here. I am very satisfied to see your article.
Thank you a lot and I am taking a look ahead to contact you.
Will you please drop me a e-mail?
centos7 與 openwebmail 版本 | 豬窩
I’m not that much of a internet reader to be honest but your blogs
really nice, keep it up! I'll go ahead and bookmark your website to come back later on. All the best