Postfix + OpenLDAP (Debian) 已完成 2004-9-28

今天是八月十五中秋節,今天我成功地實現了Postfix + LDAP實驗,心情很不錯。

一直以來,我想寫這篇文檔,歷為幾次安裝失敗,使我有種恐懼感,不想碰它,今日實驗的成功, 心情清松極了,我有信心完成這篇文檔。

閲讀本章,請選確認是成功地完成了OpenLDAP中的Debian一節的配置.否則你是無法進行本章的學習.

一般來講,配置郵件伺服器包括Qmail在內,失敗的原因20%安裝的軟件包不匹配即依賴關係,20%安裝參數有誤, 40%是配置有錯誤,剩下20%用戶配置好了,能發不能收,要麼是能收不能發.我也是過來人啊,哈哈!

本文檔的特點是全部使用apt-get安裝,不涉及編譯,安裝簡單、方便、快捷。

準備工作

我們首先來熱熱身,給自己點信心,以便能完成下面更複雜的配置。

環境 Linux debian 2.4.26-1-386

Last login: Fri Sep 17 03:56:24 2004 from 192.168.0.254
debian:~# uname -a
Linux debian 2.4.26-1-386 #1 Thu Jul 22 12:46:23 JST 2004 i686 GNU/Linux
debian:~#	
	

apt-get install 安裝所需模組

必須安裝的軟件包:


debian:~# apt-get install postfix
debian:~# apt-get install postfix-ldap postfix-tls

debian:~# apt-get install sasl2-bin
debian:~# apt-get install libsasl2-modules
debian:~# apt-get install libsasl2-modules-gssapi-heimdal
debian:~# apt-get install libpam-ldap

debian:~# apt-cache search courier
debian:~# apt-get install courier-pop
debian:~# apt-get install courier-imap
debian:~# apt-get install courier-imap-ssl
debian:~# apt-get install courier-pop-ssl
debian:~# apt-get install courier-maildrop
debian:~# apt-get install courier-ldap

debian:~# apt-get install amavisd-new
debian:~# apt-get install spamassassin
debian:~# apt-get install clamav clamav-base clamav-daemon clamav-freshclam clamav-getfiles libclamav1

debian:~# apt-get install webmin
debian:~# apt-get install webmin-postfix
debian:~# apt-get install webmin-spamassassin

debian:~# apt-get install squirrelmail
debian:~# /usr/sbin/squirrelmail-configure

debian:~# apt-get install swaks
debian:/etc/postfix# apt-get install nmap 
debian:~# apt-get install libberkeleydb-perl