PCZONE 討論區

PCZONE 討論區 (https://www.pczone.com.tw/vbb3/)
-   -- FreeBSD & Linux 討 論 版 (https://www.pczone.com.tw/vbb3/forum/41/)
-   -   【求助】Sendmail.cf 亂碼 (https://www.pczone.com.tw/vbb3/thread/41/92900/)

a_nan_nan 2004-03-25 02:13 PM

【求助】Sendmail.cf 亂碼
 
:confused:
更改設定reboot後,變成這樣
使用 M4 sendmail.mc > sendmail.cf 也還是一樣
請高手指點
謝謝

[root@ms root]# vi /etc/mail/sendmail.cf
R$* $: < $&{client_resolve} >
R<TEMP> $#TEMP $@ 4.7.1 $: "450 Relaying temporarily denied. Cannot resolve PTR record for " $&{client_addr}
R<FORGED> $#error $@ 5.7.1 $: "550 Relaying denied. IP name possibly forged " $&{client_name}
R<FAIL> $#error $@ 5.7.1 $: "550 Relaying denied. IP name lookup failed " $&{client_name}
R$* $: <@> $&{client_name}
# pass to name server to make hostname canonical
R<@> $* $=P $:<?> $1 $2
R<@> $+ $:<?> $[ $1 $]
R$* . $1 strip trailing dots
R<?> $=w $@ RELAY

............以下省略

SuperLight 2004-03-25 05:58 PM

你用什麼系統啊?

如果是自己編譯原始碼,sendmail 本身就有提供 Build 這支程式來做這些動作,如:

cp generic-bsd4.4.mc sendmail.mc <-- 複製一份 mc
vi sendmail.mc <-- 編輯 mc
sh Build sendmail.cf <-- 產生 cf
sh Build install-cf <-- 安裝 cf

如果是 FreeBSD,直接在 /etc/mail 裡面 make all install,產生到安裝
一併完成

你只要事先修改好所要的 mc 檔案就可以了


所有時間均為 +8。現在的時間是 05:55 AM



 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。