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 版本 | 豬窩

This article gives clear idea for the new users of blogging, that in fact how to do blogging and site-building.

作者 web hosting sites @ 10:44, 2020-07-23

centos7 與 openwebmail 版本 | 豬窩

Please let me know if you're looking for a article author for your blog.
You have some really good articles and I believe I would
be a good asset. If you ever want to take some of the load off, I'd absolutely
love to write some articles for your blog in exchange for
a link back to mine. Please blast me an email if interested.

Thanks!

作者 best web hosting company @ 05:27, 2020-07-26

centos7 與 openwebmail 版本 | 豬窩

What i do not realize is in reality how you
are now not really a lot more smartly-favored than you
may be now. You are so intelligent. You realize therefore considerably relating
to this topic, made me in my opinion believe it from so many numerous angles.
Its like women and men are not involved unless it is one thing to
accomplish with Woman gaga! Your own stuffs nice.
All the time maintain it up!

作者 website hosting services @ 06:25, 2020-07-27

centos7 與 openwebmail 版本 | 豬窩

I all the time used to study post in news papers but
now as I am a user of web therefore from now I am using
net for content, thanks to web.

作者 last minute flights @ 21:41, 2020-07-27

centos7 與 openwebmail 版本 | 豬窩

A person essentially assist to make critically posts I might state.
That is the first time I frequented your web page and to this point?

I amazed with the analysis you made to create this particular submit incredible.
Wonderful task!

作者 flighthub cheap flights @ 08:38, 2020-07-31
發表迴響
 authimage