資源描述:
《centos6.3下搭建sendmaildovecot郵局服務器》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在應用文檔-天天文庫。
1、Centos6.3下搭建sendmaildovecot郵局服務器1.MX解析不說了。2.安裝配置dovecot也不多說了。3.安裝配置sendmail軟件yuminstall-ysendmailsendmail-cfm4切換系統(tǒng)MTA服務[root@localhostpostfix]#servicepostfixstop關閉postfix:[確定][root@localhostpostfix]#alternatives–configmta共有2個程序提供“mta”。選擇命令———————————————–+1/usr/sbin/sendmail.postfix*
2、2/usr/sbin/sendmail.sendmail按Enter來保存當前選擇[+],或鍵入選擇號碼:2[root@localhostpostfix]#配置sendmail—–1[root@localhostmail]#catsendmail.mc
3、grep-v‘^dnl‘
4、awk-F:‘{print$1}’divert(-1)dnlinclude(`/usr/share/sendmail-cf/m4/cf.m4′)dnlVERSIONID(`setupforlinux’)dnlOSTYPE(`linux’)dnldefine(`confDEF_USER_I
5、D’,“8define(`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’)dnldefine(`STATUS_FILE’,`/var/log/mail/statistics’)dnldefine(`UUCP_MAILER_
6、MAX’,`2000000′)dnldefine(`confUSERDB_SPEC’,`/etc/mail/userdb.db’)dnldefine(`confPRIVACY_FLAGS’,`authwarnings,novrfy,noexpn,restrictqrun’)dnldefine(`confAUTH_OPTIONS’,`A’)dnlTRUST_AUTH_MECH(`EXTERNALDIGEST-MD5CRAM-MD5LOGINPLAIN’)dnl(大約在53行,去掉注釋)define(`confAUTH_MECHANISMS’,`EXTERNALGS
7、SAPIDIGEST-MD5CRAM-MD5LOGINPLAIN’)dnl(去掉注釋)define(`confTO_IDENT’,`0′)dnlFEATURE(`no_default_msa’,`dnl’)dnlFEATURE(`smrsh’,`/usr/sbin/smrsh’)dnlFEATURE(`mailertable’,`hash-o/etc/mail/mailertable.db’)dnlFEATURE(`virtusertable’,`hash-o/etc/mail/virtusertable.db’)dnlFEATURE(redirect)dnlF
8、EATURE(always_add_domain)dnlFEATURE(use_cw_file)dnlFEATURE(use_ct_file)dnlFEATURE(local_procmail,`’,`procmail-t-Y-a$h-d$u’)dnlFEATURE(`access_db’,`hash-T-o/etc/mail/access.db’)dnlFEATURE(`blacklist_recipients’)dnlEXPOSED_USER(`root’)dnlDAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0,Nam
9、e=MTA’)dnl原為Addr=127.0.0.1修改為:Addr=0.0.0.0FEATURE(`accept_unresolvable_domains’)dnlLOCAL_DOMAIN(`localhost.localdomain’)dnlMAILER(smtp)dnlMAILER(procmail)dnl[root@localhostmail]#配置sendmail—-2[root@localhostmail]#cataccess
10、grep-v^#Connect:localhost.localdomainRELAYConnect:localhostREL
11、AYConnect:12