51cto下载-rhel+5[1].0+postfix+dovecot+openwebmail+邮件服务器

51cto下载-rhel+5[1].0+postfix+dovecot+openwebmail+邮件服务器

ID:15367581

大小:56.50 KB

页数:12页

时间:2018-08-02

51cto下载-rhel+5[1].0+postfix+dovecot+openwebmail+邮件服务器_第1页
51cto下载-rhel+5[1].0+postfix+dovecot+openwebmail+邮件服务器_第2页
51cto下载-rhel+5[1].0+postfix+dovecot+openwebmail+邮件服务器_第3页
51cto下载-rhel+5[1].0+postfix+dovecot+openwebmail+邮件服务器_第4页
51cto下载-rhel+5[1].0+postfix+dovecot+openwebmail+邮件服务器_第5页
资源描述:

《51cto下载-rhel+5[1].0+postfix+dovecot+openwebmail+邮件服务器》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、RHEL5.0postfixdovecotopenwebmail邮件服务器一、先卸载sendmain[root@ser~]#yumremovesendmail二、安装postfix,dovecot,cyrus-sasl[root@ser~]#yum-yinstallpostfix[root@ser~]#yum-yinstalldovecot[root@ser~]#yum-yinstallcyrus-sasl四、修改postfix的配置文件[root@ser~]#vim/etc/postfix/main.cfmyhostname=mail.yjw.commydomain=yjw.c

2、ommyorigin=yjw.cominet_interfaces=allmynetworks=192.168.1.0/24relay_domains=yjw.com,$mydomainmydestination=$myhostname,localhost.$mydomain,localhost,$mydomain,mail.$mydomain,www.$mydomain,ftp.$mydomain重启 postfix服务[root@ser~]#servicepostfixrestartShuttingdownpostfix:[OK]Startingpostfix:[OK][ro

3、ot@ser~]#chkconfigpostfixon[root@ser~]#chkconfigdovecoton修改dovecot的配置文件vim/etc/dovecot.confprotocols=imapimapspop3pop3slisten=*在iptables 里开放25,110,143端口[root@ser~]#vim/etc/sysconfig/iptables-ARH-Firewall-1-INPUT-mstate--stateNEW-mtcp-ptcp--dport110-jACCEPT-ARH-Firewall-1-INPUT-mstate--stateNE

4、W-mtcp-ptcp--dport25-jACCEPT-ARH-Firewall-1-INPUT-mstate--stateNEW-mtcp-ptcp--dport143-jACCEPT重启iptables[root@ser~]#serviceiptablesrestartFlushingfirewallrules:[OK]SettingchainstopolicyACCEPT:filter[OK]Unloadingiptablesmodules:[OKApplyingiptablesfirewallrules:[OK]Loadingadditionaliptablesmodu

5、les:ip_conntrack_netbios_n[OK]ntrack_ftp[root@ser~]#yum-yinstallcyrus-sasl[root@ser~]#chkconfigsaslauthdon修改/etc/sysconfig/saslauthd[root@ser~]#vim/etc/sysconfig/saslauthd#Directoryinwhichtoplacesaslauthd'slisteningsocket,pidfile,andso#on.Thisdirectorymustalreadyexist.SOCKETDIR=/var/run/sasla

6、uthd#Mechanismtousewhencheckingpasswords.Run"saslauthd-v"togetalist#ofwhichmechanismyourinstallationwascompiledwiththeablitytouse.MECH=shadow#Additionalflagstopasstosaslauthdonthecommandline.Seesaslauthd(8)#forthelistofacceptedflags.FLAGS=修改/usr/lib/sasl2/smtpd.conf[root@ser~]#vim/usr/lib/sas

7、l2/smtpd.confpwcheck_method:saslauthd测试saslauthd[root@ser~]#servicesaslauthdrestart[root@ser~]#testsaslautd-uyjw-p'020304'0:OK"Success."在postfix的配置文件中,添加以下内容,使其支持SMTP认证[root@ser~]#vim/etc/postfix/main.cfmessage_size_limit=1073741824#邮件的大小为10M

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。