資源描述:
《Redhat Sendmail配置詳解》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、RedhatSendmail配置詳解一、軟件包1.dovecot-1.2.12.tar.gz2.Sendmail二、安裝步驟1.安裝dovecot一、RPM格式1。安裝RPM包;2。編輯/etc/dovecot.conf其中,修改protocols=imappop3passdbpasswd{?}passdbshadow{?}3。啟動(dòng)#servicedovecotstart?二、tar.gz包的安裝1。下載地址:(目前最新版本)http://www.dovecot.org/releases/dovecot-1.2.12.tar.gz2。安裝:#tarzxvfdovecot-1.2.12.t
2、ar.gz#cddovecot-1.2.12#./configure--prefix=/usr/local/dovecot--sysconfdir=/usr/local/etc--with-mysql--without-ssl--disable-ipv6#make#makeinstall#cp/usr/local/etc/dovecot-example.conf/usr/local/etc/dovecot.conf?3。建立啟動(dòng)進(jìn)程所依賴的用戶#useradd-s/bin/false-d/dev/nulldovecot?4。修改配置文件編輯/usr/local/etc/dovecot.c
3、onf其中,修改protocols=imappop3ssl_disable=yespassdbpasswd{?}passdbshadow{?}5。啟動(dòng)#/usr/local/dovecot/sbin/dovecot?6。可以把啟動(dòng)命令寫進(jìn)/etc/rc.d/rc.local文件,以使得系統(tǒng)啟動(dòng)時(shí)能自動(dòng)啟動(dòng)服務(wù)。#echo"/usr/local/dovecot/sbin/dovecot">>/etc/rc.d/rc.local?7。驗(yàn)正(1)驗(yàn)正POP3#telnetlocalhost110Trying127.0.0.1...Connectedtolocalhost.localdomain
4、(127.0.0.1).Escapecharacteris'^]'.+OKDovecotready.?(2)驗(yàn)正imap#telnetlocalhost143Trying127.0.0.1...Connectedtolocalhost.localdomain(127.0.0.1).Escapecharacteris'^]'.*OKDovecotready.Yum–yinstallsendmailChkconfigsendmailonServicesendmailrestart修改/etc/mail/sendmail.mc.divert(-1)dnldnl#dnl#Thisisthesen
5、dmailmacroconfigfileform4.Ifyoumakechangestodnl#/etc/mail/sendmail.mc,youwillneedtoregeneratethednl#/etc/mail/sendmail.cffilebyconfirmingthatthesendmail-cfpackageisdnl#installedandthenperformingadnl#dnl#????make-C/etc/maildnl#include(`/usr/share/sendmail-cf/m4/cf.m4')dnlVERSIONID(`setupforRedHatL
6、inux')dnlOSTYPE(`linux')dnldnl#dnl#Uncommentandeditthefollowinglineifyouroutgoingmailneedstodnl#besentoutthroughanexternalmailserver:dnl#dnldefine(`SMART_HOST',`smtp.your.provider')dnl#define(`confDEF_USER_ID',``8:12'')dnldefine(`confTRUSTED_USER',`smmsp')dnldnldefine(`confAUTO_REBUILD')dnldefine
7、(`confTO_CONNECT',`1m')dnldefine(`confTRY_NULL_MX_LIST',true)dnldefine(`confDONT_PROBE_INTERFACES',true)dnldefine(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnldefine(`ALIAS_FILE',`/etc/aliases')dnldnldefine(`STATUS_FI