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

二 Linux簡(jiǎn)明系統(tǒng)維護(hù)手冊(cè)( 三 )

<---這條用于(非HUB)缺省使用HUB發(fā)送郵件MASQUERADE_AS(`rd.xxx.com")<-------------------------FEATURE(`masquerade_entire_domain")<---這三條用于郵件地址偽裝FEATURE(`masquerade_envelope")<-------------------------FEATURE(`smrsh",`/usr/sbin/smrsh")FEATURE(`mailertable",`hash -o /etc/mail/mailertable")FEATURE(`virtusertable",`hash -o /etc/mail/virtusertable")FEATURE(redirect)FEATURE(always_add_domain)FEATURE(use_cw_file)FEATURE(local_procmail)FEATURE(`access_db")FEATURE(`blacklist_recipients")FEATURE(`accept_unresolvable_domains")MAILER(smtp)MAILER(procmail)dnl We strongly recommend to comment this one out if you want to protectdnl yourself from spam. However, the laptop and users on computers that dodnl not hav 24x7 DNS do need this.dnl FEATURE(`relay_based_on_MX")12、sh Build install-cf
13、groupadd smmsp
14、useradd smmsp
15、cd cd /usr/local/src/sendmail-8.12.2/sendmail
16、sh Build install
17、cd /usr/local/src/sendmail-8.12.2/makemap
18、sh Build clean
19、sh Build all
20、sh Build install
21、cd /usr/local/src/sendmail-8.12.2/
22、在本域DNS主數(shù)據(jù)庫(kù)文件中增加MX紀(jì)錄:
rd.xxx.com.INMX0compaq注意修改相應(yīng)部分 。那個(gè)0是有幾個(gè)郵件集中器的時(shí)候用于標(biāo)記先后順序的 。當(dāng)有好幾個(gè)MX的時(shí)候,建議順序?qū)憺?0、20、30…
23、在/etc/mail目錄下創(chuàng)建access文件,內(nèi)容類似如下:
127.0.0.1 RELAY 21.9.22 RELAY 211.99.221.238 RELAY然后:makemap hash access.db < access
24、創(chuàng)建文件/etc/mail/local-host-names,其內(nèi)容為本機(jī)的擁有的域名信息 。
rd.xxx.comcompaq.rd.xxx.com25、創(chuàng)建文件/etc/mail/aliases,內(nèi)容類似:
MAILER-DAEMON: postmaster postmaster: root bin: root daemon: root nobody: root運(yùn)行newaliases創(chuàng)建數(shù)據(jù)庫(kù) 。
創(chuàng)建別名文件的意義之一在于當(dāng)郵件發(fā)往域中其他郵件服務(wù)器的用戶而不是mail HUB用戶的時(shí)候用 。
比如增加一條:
atan: atan@fbsd則導(dǎo)致郵件發(fā)往mail HUB的時(shí)候自動(dòng)轉(zhuǎn)發(fā)到atan@fbsd.rd.xxx.com
26、啟動(dòng)sendmail: /usr/sbin/sendmail -bd -q30m
排錯(cuò):如果有問題導(dǎo)致啟動(dòng)不了,大部分問題和DNS配置有關(guān),可以使用nslookup檢查DNS是否正常 。挨個(gè)檢查/etc/mail中的文件內(nèi)容也是排錯(cuò)的好辦法 。另外,修改配置,不建議直接編輯sendmail.cf文件,建議使用m4宏編譯工具,因?yàn)橛行в邪踩┒椿蜻^時(shí)的宏在編譯的時(shí)候會(huì)有提示,這樣以免造成相關(guān)安全問題 。

推薦閱讀