sendmail如何設定發信轉寄功能?

Mac OS X 平台上程式設計的相關問題討論

版主: bryanchangdigdog謝孟叡

回覆文章
內容
發表人
頭像
cjtai
冰果室水電工
文章: 2226
註冊時間: 04/19/2001 1:01 am
來自: dark side in the earth.
聯繫:

sendmail如何設定發信轉寄功能?

#1 文章 cjtai »

諸位大德:

誰能夠教我sendmail設定發信轉寄功能。

主要目的在將經由該sendmail主機發信的email,一律轉寄一份到某一email帳號裡。

謝謝各位! :cry:
to be or not to be.
留言五百如一日
文章: 610
註冊時間: 12/25/2001 1:01 am

#2 文章 »

頭像
cjtai
冰果室水電工
文章: 2226
註冊時間: 04/19/2001 1:01 am
來自: dark side in the earth.
聯繫:

#3 文章 cjtai »

非常感謝!

還有其他善心大德,可以提供更多的參考資料嗎? :oops:
to be or not to be.
頭像
ulysses
討論區管理員
文章: 2475
註冊時間: 05/18/2001 1:01 am
來自: Forgotten Realm
聯繫:

#4 文章 ulysses »

sendmail 轉寄只要在你自己的 home 目錄下建一個 .forward 檔裡面寫要轉寄的地址就好了。
sendmail 雖然是很多人在用,可是實在是問題一大堆。如果那台機器是您在管,建議您改裝 Postfix。Postfix 容易管理,檔信的功能強大,而且 config 檔是用地球人語言寫的,不像 sendmail.cf 是用火星文寫的。

您可以到鳥哥的Linux私房菜看看

http://linux.vbird.org/
ash nazg durbatuluk, ash nazg gimbatul,
ash nazg thrakatuluk agh burzum-ishi krimpatul.
頭像
cjtai
冰果室水電工
文章: 2226
註冊時間: 04/19/2001 1:01 am
來自: dark side in the earth.
聯繫:

#5 文章 cjtai »

ulysses 寫:sendmail 轉寄只要在你自己的 home 目錄下建一個 .forward 檔裡面寫要轉寄的地址就好了。
sendmail 雖然是很多人在用,可是實在是問題一大堆。如果那台機器是您在管,建議您改裝 Postfix。Postfix 容易管理,檔信的功能強大,而且 config 檔是用地球人語言寫的,不像 sendmail.cf 是用火星文寫的。

您可以到鳥哥的Linux私房菜看看

http://linux.vbird.org/
非常感謝!

也有其他人建議我使用Postfix,但是用sendmail習慣了,有點改不太過來...
:wink:

.forward只能做收件的信件轉寄不是嗎?可以設定該帳號的發信轉寄嗎?
to be or not to be.
頭像
cjtai
冰果室水電工
文章: 2226
註冊時間: 04/19/2001 1:01 am
來自: dark side in the earth.
聯繫:

#6 文章 cjtai »

找到sendmail的解決方法了!

的確比Postfix囉唆很多,而且不同版本做法還有一點差異,提供給各位做參考!
to be or not to be.
頭像
cjtai
冰果室水電工
文章: 2226
註冊時間: 04/19/2001 1:01 am
來自: dark side in the earth.
聯繫:

#7 文章 cjtai »

Postfix對收發的郵件備份設定的確方便簡單。

但是,我發現很奇怪的問題:

架起來的Postfix對美國地區的有些domain似乎無法收發郵件,
例如aol.com、comcast.net...等,
同一部電腦與線路IP,如果改用sendmail卻完全OK,
真是傷透腦筋。

:twisted:
to be or not to be.
頭像
ulysses
討論區管理員
文章: 2475
註冊時間: 05/18/2001 1:01 am
來自: Forgotten Realm
聯繫:

#8 文章 ulysses »

你可能是把檢查 relay host 的 domain name 項目打開了。
如果這一項沒關掉,連 msr.hinet.net 轉來的信都會收不到。
抱歉忘了這是哪一個項目。反正在 /etc/postfix/main.conf 把那一行註解掉就好了。
ash nazg durbatuluk, ash nazg gimbatul,
ash nazg thrakatuluk agh burzum-ishi krimpatul.
回覆文章