相對應的,你要發送郵件給誰,就要設置相應的域名,不設置的時候郵件是發送不出去的。 2。 右鍵單擊 163.com 等域名,選 “屬性” ,勾上 “Allow incoming mail to be relayed to this domain”,勾上后郵件才能發送出去,否則還是有錯。 下面的 Route domain 選默認的 Use DNS to route to domain 就可以了。
在 Windows xp+ visual sutdio 2003 + iis5.1 環境下測試通過, 不過只有發現發送到新浪郵箱的信件收不到,不知道為什么。
出現 SMTP典型錯誤 550 5 7 1 Uable to relay 則除了domains 域名沒有設置好還有可能是 SMTP虛擬服務器的設置中沒有選中“allow computers which successfully authenticate to relay”復選框。如下所示, 先打開SMTP Virtual Server的屬性頁的access頁: 然后點擊“Relay”按鈕,看“Allow all computers which successfully authenticate to relay,regardless of the list above”是否選中: