yum install open webmail with winbind

參考網址:

http://openwebmail.org/openwebmail/download/redhat/yum/readme.txt

先切換成 root 身分( su - )
#cd /etc/yum.repos.d
wget http://openwebmail.org/openwebmail/download/redhat/rpm/release/openwebmail.repo
#yum install openwebmail

以上四個步驟,就會自動完成安裝 。

若沒有成功, 則請先完成以下三個步驟:

#yum -y install perl-suidperl perl-Compress-Zlib
#cpan -i Text::Iconv
#yum groupinstall "Development Tools"

也可自已由CPAN search下載安裝

#wget http://search.cpan.org/CPAN/authors/id/M/MP/MPIOTR/
Text-Iconv-1.7.tar.gz
#tar -xzvf Text-Iconv-1.7.tar.gz
#cd Text-Iconv-1.7.tar.gz
#perl Makefile.PL LIB='-L/usr/bin' #指到iconv的所在目錄
#make test
#make install

讓openwebmail也支援pam的認証

#前提是mailserver已有設定為pam認証
1.修改/var/www/cgi-bin/openwebmail/etc/openwebmail.conf

#vim /var/www/cgi-bin/openwebmail/etc/openwebmail.conf

內容: 將auth_module從auth_unix.pl改為auth_pam.pl

auth_module                     auth_pam.pl

2 新增openwebmail的pam設定檔

#vim /etc/pam.d/openwebmail

內容:

#%PAM-1.0
auth sufficient pam_winbind.so
auth required pam_nologin.so
auth include system-auth
account include system-auth
session include system-auth
account sufficient pam_winbind.so

3 安裝 pam-devel 和 perl module Authen::PAM

#yum install  pam-devel
#cpan -i Authen::PAM

4 修改/var/www/cgi-bin/openwebmail/etc/openwebmail.conf
指定domainnames 由 auto 改為 @後面的domainname
這樣我們寄信時@後面才不會怪怪的

完工!

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s