Ms7 Search
Google 搜尋 翻譯
calendar
« 四月 2025 »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
近期文章
文章分類
網站連結
Syndicate

« | »

centos7 與 openwebmail 版本

2017-09-10 @ 02:11 in 學校網頁

在升級為 centos7 後 openwebmail 2.53 版就無法使用,而網上說的 3.0 beta 版,在使用時有通訊錄無法增加修改的問題,還有某些網站寄來的信件,附件檔無法開啟,及無法轉寄的問題,一直無法解決,後來看到為了CentOS7出的 2.54 版,想說裝裝看,結果竟然解決了上面無法開啟及通訊錄的問題,參考某些網站安裝 3.0 的方式,修改一些符合自己的方式,方法如下:

  1. vi /etc/selinux/config (改為disabled)
  2. cd /etc/yum.repos.d/ ; wget ftp://openwebmail.org/pub/openwebmail/el7/openwebmail-el7.repo
  3. yum --downloadonly --downloaddir=/usr/local/src install openwebmail perl-CGI-SpeedyCGI perl-Authen-PAM perl-HTML-Template
  4. cd /usr/local/src/ ; rpm -Uvh *.rpm (再來安裝其它相關套件)
  5. yum install openwebmail ( 直接安裝 2.54 版本)
  6. mv /var/www/data/openwebmail /var/www/html (將網頁直接移到 html 下)
  7. cp /usr/bin/speedy /usr/bin/speedy_suidperl ; chmod 4555 /usr/bin/speedy_suidperl
  8. cd /var/www/cgi-bin/openwebmail  (到 openwebmail目錄)
  9. sed -i -e 's/perl -T/speedy_suidperl -T -- -T\/tmp\/speedy/' openwebmail*.pl# vi etc/openwebmail.conf (因為上面將套件目錄作修改)
  10. 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 (以下不改)(以下不改)
  11. vi etc/dbm.conf
    dbm_ext             .pag
    dbmopen_ext         none
    dbmopen_haslock     no
  12. ./openwebmail-tool.pl --init  (到這裡差不多結束,但有些權限必須改如下)
  13. 設定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 版本 | 豬窩

Excellent blog! Do you have any tips for aspiring writers?
I'm planning to start my own blog soon but I'm a little lost
on everything. Would you recommend starting with a free platform like Wordpress or go for a paid option? There are so many choices out there that I'm totally confused ..
Any recommendations? Thank you!

作者 pradyogeeky.blogspot.com @ 02:55, 2022-02-21
«上一篇   1 2 3 4 5 6
發表迴響
 authimage