> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailchannels.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup IIS

> Configure IIS SMTP to relay outbound mail through MailChannels Outbound Filtering using smart host settings and SMTP authentication.

This guide walks you through configuring IIS SMTP to relay all outbound mail through MailChannels Outbound Filtering.

## Prerequisites

* A Windows host with IIS SMTP installed and configured
* Your MailChannels SMTP username and password

## Configure the relay

<Steps>
  <Step title="Open the SMTP virtual server properties">
    Open **IIS Manager**, right-click on the SMTP virtual server, and choose **Properties** from the menu.

    <img src="https://mintcdn.com/mailchannelscorporation/qgJx36-4nVXYStTm/images/setting-up-for-iis/iis-properties.png?fit=max&auto=format&n=qgJx36-4nVXYStTm&q=85&s=bf8ab8fba5b90626856c71ac0683d353" alt="IIS virtual server properties" width="409" height="455" data-path="images/setting-up-for-iis/iis-properties.png" />
  </Step>

  <Step title="Set the smart host">
    Click the **Delivery** tab, then click **Advanced**.

    In the **Smart host** field, enter:

    ```text theme={null}
    smtp.mailchannels.net
    ```

    Click **OK** to save.
  </Step>

  <Step title="Configure authentication">
    Still on the **Delivery** tab, click the **Security** tab.

    Select **Basic Authentication** if it is not already the default. Enter your MailChannels SMTP username and password into the **User name** and **Password** fields, then click **OK**.
  </Step>
</Steps>

## Troubleshooting

**Port 25 is blocked** — MailChannels supports connections on ports `2525`, `465`, and `587` as alternatives to port 25. To change the outbound port:

1. Open **IIS Manager** and right-click on the SMTP virtual server. Choose **Properties**.

2. Click the **Delivery** tab, then click **Outbound Connections**.

   <img src="https://mintcdn.com/mailchannelscorporation/qgJx36-4nVXYStTm/images/setting-up-for-iis/iis-altport.png?fit=max&auto=format&n=qgJx36-4nVXYStTm&q=85&s=971b96901884a1d1243fb53b20764c72" alt="IIS alternate port configuration" width="391" height="211" data-path="images/setting-up-for-iis/iis-altport.png" />

3. In the **Outbound Connections** dialog, change the **TCP port** value to your desired port and click **OK**.
