如何修正來自子網域的所有電子郵件

 

適用版本: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007

上次修改主題的時間: 2007-08-13

本主題說明如何使用 Exchange 管理命令介面,在已安裝 Microsoft  Exchange Server 2007 Edge Transport server role 的電腦上建立新的地址修正項目,此項目會修正從多個子網域傳送的所有電子郵件。當您修正多個子網域時,可以建立下列類型的地址修正項目︰

  • 會影響您所有子網域的地址修正項目
  • 只會影響特定子網域的地址修正項目
  • 會影響除了您識別為例外之子網域以外所有子網域的地址修正項目
note附註:
您不能使用 Exchange 管理主控台來管理地址修正代理程式。若要管理地址修正代理程式,則必須使用 Exchange 管理命令介面。如需如何使用 Exchange 管理命令介面的相關資訊,請參閱使用 Exchange 管理命令介面

如需地址修正的相關資訊,請參閱規劃地址修正

開始之前

若要在已安裝 Edge Transport server role 的電腦上執行下列程序,則必須使用該電腦之本機 Administrators 群組成員的帳戶進行登入。

而且,在執行這些程序前,請閱讀如何建立新地址修正項目

Caution請注意:
您必須先準備好子網域,再建立會修正多個網域的地址修正項目。如需相關資訊,請參閱準備在多重網域中修正地址

New-AddressRewriteEntry 指令程式包括 TemplateInstance 參數。TemplateInstance 參數讓您將某個地址修正項目的組態複製到另一個地址修正項目。複製地址修正項目時可用的內容為 OutboundOnly 內容和 ExceptionList 內容。如需如何使用現有地址修正項目作為範本的相關資訊,請參閱範本

修正來自所有子網域的電子郵件

若要建立會修正所有子網域之所有電子郵件標題的地址修正項目,請使用下列命令語法︰

New-AddressRewriteEntry -Name <address rewrite entry name> -InternalAddress <*.internal domain> -ExternalAddress <external domain> -OutboundOnly $True

使用 Exchange 管理命令介面來建立新的地址修正項目,而此項目會修正從多個子網域與父系網域傳送的所有電子郵件

  • 執行下列命令:

    New-AddressRewriteEntry -Name "Rewrite all contoso.com sub-domains" -InternalAddress *.contoso.com -ExternalAddress contoso.com -OutboundOnly $True 
    

在 Exchange Server 2007 Service Pack 1 (SP1) 中修正來自特定子網域的電子郵件

若要在 Exchange 2007 SP1 中建立地址修正項目,以修正來自特定網域的電子郵件標題,請使用下列命令語法︰

New-AddressRewriteEntry -Name <address rewrite entry name> -InternalAddress <internal domain 1> -ExternalAddress <external domain> -OutboundOnly $True
New-AddressRewriteEntry -Name <address rewrite entry name> -InternalAddress <internal domain n> -ExternalAddress <external domain> -OutboundOnly $True

使用 Exchange 管理命令介面,在 Exchange 2007 SP1 中建立新的地址修正項目,以修正從特定子網域傳送的所有電子郵件

  • 執行下列命令:

    New-AddressRewriteEntry -Name "Rewrite sales.contoso.com to contoso.com" -InternalAddress sales.contoso.com -ExternalAddress contoso.com -OutboundOnly $True
    New-AddressRewriteEntry -Name "Rewrite marketing.contoso.com to contoso.com" -InternalAddress marketing.contoso.com -ExternalAddress contoso.com -OutboundOnly $True
    New-AddressRewriteEntry -Name "Rewrite research.contoso.com to contoso.com" -InternalAddress research.contoso.com -ExternalAddress contoso.com -OutboundOnly $True
    

在 Exchange 2007 量產發行 (RTM) 版本中修正來自特定子網域的電子郵件

若要在 Exchange 2007 RTM 中建立地址修正項目,以修正來自特定網域的電子郵件標題,請使用下列命令語法︰

New-AddressRewriteEntry -Name <address rewrite entry name> -InternalAddress <*.internal domain 1> -ExternalAddress <external domain> -OutboundOnly $True
New-AddressRewriteEntry -Name <address rewrite entry name> -InternalAddress <*.internal domain n> -ExternalAddress <external domain> -OutboundOnly $True

使用 Exchange 管理命令介面,在 Exchange 2007 RTM 中建立新的地址修正項目,以修正從特定子網域傳送的所有電子郵件

  • 執行下列命令:

    New-AddressRewriteEntry -Name "Rewrite sales.contoso.com to contoso.com" -InternalAddress *.sales.contoso.com -ExternalAddress contoso.com -OutboundOnly $True
    New-AddressRewriteEntry -Name "Rewrite marketing.contoso.com to contoso.com" -InternalAddress *.marketing.contoso.com -ExternalAddress contoso.com -OutboundOnly $True
    New-AddressRewriteEntry -Name "Rewrite research.contoso.com to contoso.com" -InternalAddress *.research.contoso.com -ExternalAddress contoso.com -OutboundOnly $True
    

修正來自所有子網域的電子郵件 (但有例外)

若要建立會修正除了特定子網域以外所有子網域之所有電子郵件標題的地址修正項目,請使用下列命令語法︰

New-AddressRewriteEntry -Name <address rewrite entry name> -InternalAddress <*.internal domain> -ExternalAddress <external domain> -OutboundOnly $True -ExceptionList <excluded domain name 1, excluded domain name 2>

使用 Exchange 管理命令介面來建立新的地址修正項目,而此項目會修正從多個子網域與父系網域傳送的所有電子郵件 (您指定的子網域除外)

  • 執行下列命令:

    New-AddressRewriteEntry -name "Rewrite all contoso.com sub-domains except legal.contoso.com" -InternalAddress *.contoso.com -ExternalAddress contoso.com -OutboundOnly $True -ExceptionList legal.contoso.com, corp.contoso.com
    

相關資訊

如需詳細的語法及參數資訊,請參閱 New-AddressRewriteEntry

如需地址修正的相關資訊,請參閱下列主題:

若要確保您目前閱讀的是最新資訊,並尋找其他的 Exchange Server 2007 說明文件,請造訪 Exchange Server 技術資源中心.