Centos 6.2部署Extmail企業郵箱教程

來源:互聯網
上載者:User

Extmail 是一個以perl語言編寫,面向大容量/ISP級應用,免費的高效能Webmail軟體,主要包括ExtMail、Extman兩個部分的程式套件。ExtMail套件用於提供從瀏覽器中登入、使用郵件系統的Web操作介面,而Extman套件用於提供從瀏覽器中管理郵件系統的Web操作介面。它以GPL著作權釋出,設計初衷是希望設計一個適應當前高速發展的IT應用環境,滿足使用者多變的需求,能快速進行開發、改進和升級,適應能力強的webmail系統。

extmail,這個基於linux的webmail軟體,我今天也在虛擬機器裡測試了一番,由於電腦的效能實在不佳,導致編譯什麼的耗時嚴重,到最後,甚至影響了我的心情,在本次部署的尾聲,加上和朋友的交流過程中,發現這套郵件體系,在中國能找到的資料和能得到的支援是少之又少(算是個人見解)於是關於郵件帶毒網關和後續的操作,我不打算繼續研究了,另外,感謝博主斬月和博主我為技術狂,前者的文章在我部署中解決了不少困惑,後者將我從混亂思路拯救出來!

部署具體步驟如下:

本環境基於Centos 6.2 LAMP架構。如果你需要我lamp架構的部署流程可以參考我的另一篇博文【圖解】LAMP編譯安裝

1:使用驗證庫,可以使用mysql驗證郵件賬戶

[root@chenyi1 phpMyadmin]# tar jxf /chenyi/courier-authlib-0.63.0.tar.bz2 -C /usr/src/[root@chenyi1 phpMyadmin]# cd /usr/src/courier-authlib-0.63.0/[root@chenyi1 courier-authlib-0.63.0]# groupadd postfix -g 1000[root@chenyi1 courier-authlib-0.63.0]# groupadd vmail -g 1001[root@chenyi1 courier-authlib-0.63.0]# groupadd postdrop -g 1002[root@chenyi1 courier-authlib-0.63.0]# useradd  -u 1001  -g 1000 vmail[root@chenyi1 courier-authlib-0.63.0]# useradd  -u 1000  -g 1000 postfix[root@chenyi1 courier-authlib-0.63.0]# id vmail

查看相應的使用者組關係

uid=1001(vmail) gid=1000(postfix) 組=1000(postfix)[root@chenyi1 courier-authlib-0.63.0]# id postfixuid=1000(postfix) gid=1000(postfix) 組=1000(postfix)

預配置

[root@chenyi1 courier-authlib-0.63.0]# ./configure    --prefix=/usr/local/courier-authlib --with-mailuser=vmail --with-mailgroup=vmail   --sysconfdir=/etc    --without-authpam    --without-authldap    --without-authpwd    --without-authshadow    --without-authvchkpw --without-authpgsql --with-authmysql    --with-mysql-libs=/usr/local/mysql/lib/mysql    --with-mysql-includes=/usr/local/mysql/include/mysql --with-redhat    --with-authmysqlrc=/etc/authmysqlrc --with-authdaemonrc=/etc/authdaemonrc    CFLAGS="-march=i686 -O2 -fexpensive-optimizations" CXXFLAGS="-march=i686 -O2 -fexpensive-optimizations"

如果在配置過程中沒有報錯,那麼即可編譯、安裝了。

[root@chenyi1 courier-authlib-0.63.0]# make && make install

更新動態連結程式庫(後面類似操作,不予解釋)

[root@chenyi1 courier-authlib-0.63.0]# echo  '/usr/local/courier-authlib/lib/courier-authlib/' >> /etc/ld.so.conf  [root@chenyi1 courier-authlib-0.63.0]# ldconfig

注意:如果是64位系統,這裡需要將i686修改為x86-64,關於各種編譯選項的含義可以使用./configure --help 來擷取

2:修改authlib庫相關設定檔

[root@chenyi1 courier-authlib-0.63.0]# cp /etc/authdaemonrc.dist /etc/authdaemonrc[root@chenyi1 courier-authlib-0.63.0]# grep -v '^#' /etc/authdaemonrc | grep -v '^$'authmodulelist="authmysql"被grep篩選後的有效配置authmodulelistorig="authmysql"daemons=5authdaemonvar=/usr/local/courier-authlib/var/spool/authdaemonDEBUG_LOGIN=0DEFAULTOPTIONS=""LOGGEROPTS=""[root@chenyi1 courier-authlib-0.63.0]# cp /etc/authmysqlrc.dist /etc/authmysqlrc[root@chenyi1 courier-authlib-0.63.0]# grep -v '^#' /etc/authmysqlrc | grep -v '^$'MYSQL_SERVER127.0.0.1MYSQL_USERNAMEextmailMYSQL_PASSWORDitchenyiMYSQL_SOCKET/tmp/mysql.sockMYSQL_PORT3306MYSQL_OPT0MYSQL_DATABASEextmailMYSQL_USER_TABLEmailboxMYSQL_CRYPT_PWFIELDpasswordMYSQL_UID_FIELD1001MYSQL_GID_FIELD1001MYSQL_LOGIN_FIELDusernameMYSQL_HOME_FIELDconcat('/email/mailbox/',homedir)MYSQL_NAME_FIELDnameMYSQL_MAILDIR_FIELDconcat('/email/mailbox/',maildir)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.