日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

FreeBSD4.7+Qmail+Mysql+Vpopmail+QmailAdmin+Sq( 四 )


#cd /autorespond
#gcc -Wall -o autorespond autorespond.c
#cp autorespond /usr/local/bin/autorespond

3. 安裝qmailadmin
#cd /down
#tar zxvf qmailadmin-1.0.6.tar.gz
#cd qmailadmin-1.0.6
#./configure
#make
#make install-strip

4. 漢化qmailadmin的管理頁(yè)面
#cd /down
#cp en-us /usr/local/share/qmailadmin/html/en

5. 測(cè)試qmailamdin
http://mail.localhost.com/cgi-bin/qmailadmin
輸入域:mail.localhost.com
輸入postmaster的密碼,也就是你添加虛擬域mail.localhost.com是的密碼

十二. 安裝sqwebmail
1. 安裝sqwebmail
#cd /down
#tar zxvf sqwebmail-3.5.0-cn.tar.gz
#cd sqwebmail-3.5.0
#./configure --without-authpam --with-db=db --enable-webpass=yes --without-authpwd --without-authshadow --without-authmysql --with-authldap --with-authuserdb --with-authpwd --with-authvchkpw --without-authdaemon
#make configure-check
#make
#make install-strip
#make install-configure

如果你要同時(shí)使用系統(tǒng)用戶和虛擬用戶:
#系統(tǒng)用戶采用shadow驗(yàn)證,虛擬域采用vchkpw驗(yàn)證,禁止其他驗(yàn)證方式
echo “authvchkpw authshadow” > /usr/local/share/sqwebmail/authmodulelist

2. 測(cè)試sqwebmail
http://mail.localhost.com/cgi-bin/sqwebmail
使用用戶test,密碼test,看看時(shí)候能夠登錄進(jìn)取和收發(fā)郵件!

3. 修改apache
#cd /usr/local/apache/htdocs
#touch index.html
#ee index.html 輸入一下內(nèi)容:



MAIL SYSTEM






此時(shí)你就可以通過(guò):
http://mail.localhost.com
直接來(lái)訪問(wèn)sqwebmail了 。

十三. 結(jié)束語(yǔ)
至此,一個(gè)支持web收發(fā)郵件和smtp認(rèn)證、mail from auth的郵件系統(tǒng)已經(jīng)建立起來(lái)了,該系統(tǒng)支持用戶漫游功能,支持web頁(yè)面管理虛擬域 。
由于本人技術(shù)有限,而且沒(méi)有任何寫(xiě)作功底,錯(cuò)誤之處在所難免,如有發(fā)現(xiàn)請(qǐng)批評(píng)指正,謝謝!

十四. 鳴謝:
感謝網(wǎng)上的很多網(wǎng)友發(fā)表的Qmail方面的文檔,我的這個(gè)安裝筆記就是借鑒他們的文檔完成的,感謝gadfly對(duì)smtp認(rèn)證和mail from auth方面的幫助 。

十五. 附錄

1.Qmail的主要配置文件
badmailfrom none qmail-smtpd 黑名單地址
bouncefrom MAILER-DAEMON qmail-send 退回郵件
bouncehost me qmail-send 退回郵件
concurrencylocal 10 qmail-send 本地同時(shí)投遞郵件的數(shù)目
concurrencyremote 20 qmail-send 同時(shí)投遞至遠(yuǎn)程主機(jī)的數(shù)目
defaultdomain me qmail-inject 默認(rèn)域名
defaulthost me qmail-inject 默認(rèn)主機(jī)名
databytes 0 qmail-smtpd 郵件的最大容量 (0=無(wú)限制)
doublebouncehost me qmail-send
doublebounceto postmaster qmail-send
envnoathost me qmail-send 沒(méi)有"@"的默認(rèn)域名
helohost me qmail-remote 主機(jī)名
idhost me qmail-inject Message-ID的主機(jī)名
localiphost me qmail-smtpd 本地IP的替代名
locals me qmail-send 傳遞至本地的域名
me 系統(tǒng)正式域名 various
morercpthosts none qmail-smtpd 第二個(gè)rcpthosts
percenthack none qmail-send 使用 "%"格式的域名
plusdomain me qmail-inject
qmqpservers none qmail-qmqpc QMQP服務(wù)器的IP地址
queuelifetime 604800 qmail-send 在隊(duì)列中郵件保存的時(shí)間(秒)
rcpthosts none qmail-smtpd 接收郵件的域名
smtpgreeting me qmail-smtpd
smtproutes none qmail-remote
timeoutconnect 60 qmail-remote SMTP連接超時(shí)時(shí)間
timeoutremote 1200 qmail-remote 等待遠(yuǎn)程主機(jī)的時(shí)間
timeoutsmtpd 1200 qmail-smtpd SMTP客戶連接超時(shí)的時(shí)間
virtualdomains none qmail-send 虛擬域名

2.vpopmail參數(shù)附錄:
--enable-roaming-users=n|y
當(dāng)pop3認(rèn)證通過(guò)后,是否打開(kāi)對(duì)該用戶的郵件轉(zhuǎn)發(fā)(mail relay),缺省是關(guān)閉的 。若設(shè)置該選項(xiàng)為y,當(dāng)某個(gè)用戶通過(guò)了pop3認(rèn)證,則將其IP地址加入許可通過(guò)該郵件服務(wù)器進(jìn)行relay的列表中 。一個(gè)名為clearopensmtp的cronjob程序可以用來(lái)實(shí)現(xiàn)在這一段時(shí)間以后從允許轉(zhuǎn)發(fā)郵件地址列表中將該IP地址清除 。這個(gè)選項(xiàng)要求以-x /etc/tcp.smtp.cdb選項(xiàng)來(lái)使用tcpserver運(yùn)行smtp服務(wù)器 。

推薦閱讀