Chinaunix首页 | 论坛 | 博客
  • 博客访问: 407920
  • 博文数量: 403
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: -70
  • 用 户 组: 普通用户
  • 注册时间: 2016-09-05 12:45
文章分类

全部博文(403)

文章存档

2014年(3)

2013年(1)

2012年(3)

2011年(21)

2010年(13)

2009年(64)

2008年(9)

2007年(36)

2006年(253)

分类: LINUX

2011-05-24 09:18:53

OpenWebMail 快速簡單安裝 in SuSE 9.1
 
1. 首先, 把 openwebmail 抓回來.
2. 這是快速安裝 openwebmail, 很多步驟會省略, 若要詳情,請參考該安裝說明.
3. 筆者是以 SuSE 9.1 最小安裝,為預設系統環境,
故抓回以下檔案就能讓 OWM 基本運作
perl-MIME-tools-5.411a-368.i586.rpm,
perl-Text-Iconv-1.2-183.i586.rpm

4. SuSE 預設 web docs 目錄在 /srv/www/htdocs, cgi-bin 目錄在 /srv/www/cgi-bin,
把解開 OWM 的 cgi-bin, data 分別放在 /srv/www/cgi-bin/openwebmail, /srv/www/htdocs/openwebmail

5. 設定/srv/www/cgi-bin/openwebmail/etc/openwebmail.conf
domainnames auto
auth_module auth_unix.pl
mailspooldir /var/mail
ow_cgidir /srv/www/cgi-bin/openwebmail
ow_cgiurl /cgi-bin/openwebmail
ow_htmldir /srv/www/htdocs/openwebmail
ow_htmlurl /openwebmail
logfile /var/log/openwebmail.log

6. /srv/www/cgi-bin/openwebmail/etc/default 複製一個 dbm.conf 到 /srv/www/cgi-bin/openwebmail/etc 底下
dbm_ext .pag
dbmopen_ext none
dbmopen_haslock no

7 跟 6 一樣, 複製一個 auth_unix.conf 到 /srv/www/cgi-bin/openwebmail/etc
passwdfile_plaintext /etc/passwd
passwdfile_encrypted /etc/shadow
passwdmkdb none

check_expire no
check_nologin no
check_shell no
check_cobaltuser no
change_smbpasswd no

8.
chmod 4555 /usr/bin/suidperl
chmod 4555 /srv/www/cgi-bin/openwebmail/openwebmail*.pl
chown root.mail /srv/www/cgi-bin/openwebmail/openwebmail*.pl

9. 有些環境設定會抓不到 SCRIPT_DIR, 故在 /etc/openwebmail_path.conf 多一行 /srv/www/cgi-bin/openwebmail

10. openwebmail-tool.pl --init
若有跑出

creating db /srv/www/cgi-bin/openwebmail/etc/maps/b2g ...done.
creating db /srv/www/cgi-bin/openwebmail/etc/maps/g2b ...done.
creating db /srv/www/cgi-bin/openwebmail/etc/maps/lunar ...done.
Welcome to the Open WebMail!

This program is going to send a short message back to the developer,
so we could have the idea that who is installing and how many sites are
using this software, the content to be sent is:

OS: Linux 2.6.4-52-default i686
Perl: 5.008003
WebMail: Open WebMail 2.32 20040722

Send the site report?(Y/n)

就快成功了
阅读(665) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~