欢迎来到天天文库
浏览记录
ID:37713380
大小:19.14 KB
页数:6页
时间:2019-05-29
《Redhat Sendmail配置详解》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、RedhatSendmail配置详解一、软件包1.dovecot-1.2.12.tar.gz2.Sendmail二、安装步骤1.安装dovecot一、RPM格式1。安装RPM包;2。编辑/etc/dovecot.conf其中,修改protocols=imappop3passdbpasswd{ }passdbshadow{ }3。启动#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。建立启动进程所依赖的用户#useradd-s/bin/false-d/dev/nulldovecot 4。修改配置文件编辑/usr/local/etc/dovecot.c
3、onf其中,修改protocols=imappop3ssl_disable=yespassdbpasswd{ }passdbshadow{ }5。启动#/usr/local/dovecot/sbin/dovecot 6。可以把启动命令写进/etc/rc.d/rc.local文件,以使得系统启动时能自动启动服务。#echo"/usr/local/dovecot/sbin/dovecot">>/etc/rc.d/rc.local 7。验正(1)验正POP3#telnetlocalhost110Trying127.0.0.1...Connectedtolocalhost.localdomain
4、(127.0.0.1).Escapecharacteris'^]'.+OKDovecotready. (2)验正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
此文档下载收益归作者所有