Ms7 Search
Google 搜尋 翻譯
calendar
« 九月 2024 »
            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 版本 | 豬窩

Great post. I used to be checking constantly this blog and I am inspired!
Very helpful information particularly the final phase :) I
maintain such info a lot. I was looking for this particular info for
a very lengthy time. Thanks and best of luck.

作者 web hosting services @ 04:17, 2020-08-06

centos7 與 openwebmail 版本 | 豬窩

Hi to all, it's really a nice for me to pay a visit this website,
it contains priceless Information.

作者 web hosting reviews @ 19:35, 2020-08-06

centos7 與 openwebmail 版本 | 豬窩

Pretty! This has been an extremely wonderful article. Thank
you for supplying this info.

作者 best web hosting @ 00:45, 2020-08-07

centos7 與 openwebmail 版本 | 豬窩

After exploring a few of the blog posts on your site, I honestly like
your way of writing a blog. I saved as a favorite it to my
bookmark site list and will be checking back in the near future.
Please check out my website as well and tell me what you think.

作者 best hosting @ 12:51, 2020-08-10

centos7 與 openwebmail 版本 | 豬窩

It's amazing in favor of me to have a web site, which is beneficial in favor
of my know-how. thanks admin

作者 cbd oil @ 08:17, 2021-04-14
發表迴響
 authimage