Поделиться через


Creating SMTP Domains

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

You can create two types of domains in the SMTP service: alias and remote. Alias domains allow you to create secondary domains that point to the default domain and use its settings, including the Drop directory. Any message sent to an alias domain is stamped with the default domain name.

Remote domains can be set for domains to which you commonly send messages. For each remote domain, you can set a predetermined delivery route and require that Transport Layer Protocol (TLS) encryption be used in all sessions with that domain. You can also use a wildcard character in the name so that all inclusive domains for the domain you are creating use the same settings. Use an asterisk (*) as the first character, followed by a period (.). For example, you can use the asterisk as a wildcard in the following format:

*.example.com

Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /User:Administrative_AccountName "mmc systemroot\system32\inetsrv\iis.msc".

Procedures

To create an alias domain

  1. In IIS Manager, expand the SMTP virtual server, right-click Domains, point to New, and then click Domain.

  2. Use the New SMTP Domain Wizard to set up a local (alias) domain.

To create a remote domain

  1. In IIS Manager, expand the SMTP virtual server, right-click Domains, point to New, and then click Domain.

  2. In Welcome to the New SMTP Domain Wizard, ensure that the Remote option is selected, and click Next.

  3. In Domain Name, in the Name text box, type a name for the new domain, and then click Finish.

    You can use a wildcard character. For example, type *.contoso.comif you want mail to be delivered to any of the contoso.com SMTP servers.

  4. Right-click the domain you just created, and then click Properties.

  5. Select the Allow incoming mail to be relayed to this domaincheck box.

  6. Click Outbound Security, and then configure the authentication and provide the credentials required by the SMTP server to which the smart host will connect.