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

迴響

請問我照著做了,只是為方便管理,我把使用者的信件集中到某個目錄下
chown [uid]:[mail] User_Directory
chmod 700 User_Directory

User_file 權限
(mod) 是 600
(own) 是 [uid]:[mail] 或是 [uid]:[gid]

裝好後,使用者的信進來了,但是卻無法讀出信的內容
請問這是怎麼了?

作者 TG @ 09:46, 2019-12-02

centos7 與 openwebmail 版本 | 豬窩

Hey there, I think your site might be having browser compatibility issues.
When I look at your website in Chrome, it looks fine but when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other then that, fantastic
blog!

作者 g if @ 14:25, 2020-06-20

centos7 與 openwebmail 版本 | 豬窩

I think the admin of this site is really working hard in favor of his website,
as here every data is quality based stuff.

作者 rsacwgxy g @ 10:33, 2020-06-22

centos7 與 openwebmail 版本 | 豬窩

Cbd oil that works 2020
I am really enjoying the theme/design of your web site.
Do you ever run into any internet browser compatibility problems?
A small number of my blog audience have complained about my website not operating correctly
in Explorer but looks great in Firefox. Do you have any suggestions
to help fix this issue? best cbd oil for pain http://tinyurl.com/cbd-oil-that-works-2020 cbd oil that works 2020 http://tinyurl.com/cbd-oil-that-works-2020

作者 http://tinyurl.com/cbd-oil-that-works-2020 @ 01:55, 2020-06-25

centos7 與 openwebmail 版本 | 豬窩

I've been browsing online more than 4 hours today, yet I never found any interesting article like yours.
It's pretty worth enough for me. Personally, if all site owners and bloggers made
good content as you did, the web will be a lot more useful than ever before.

作者 www.helios-ps.com @ 17:33, 2020-06-26
1 2 3 4 5 6  下一篇»
發表迴響
 authimage