How to find incoming and outgoing mail server in exchange

To find the incoming and outgoing mail servers in Exchange, you can follow these steps:

Method 1: Using the Exchange Admin Center

  1. Log in to the Exchange Admin Center (EAC) using your Exchange administrator credentials.
  2. Click on "Mail flow" in the navigation pane.
  3. Click on "Send connectors" in the "Mail flow" section.
  4. Click on the "Outbound security" tab.
  5. Look for the "Smart host" field, which will display the outgoing mail server (also known as the "SMTP relay").
  6. To find the incoming mail server, click on "Receive connectors" in the "Mail flow" section.
  7. Click on the "Default" receive connector.
  8. Look for the "Smart host" field, which will display the incoming mail server (also known as the "SMTP relay").

Method 2: Using PowerShell

  1. Open PowerShell and connect to your Exchange server using the following command: Connect-ExchangeServer -Server <ExchangeServerName>
  2. Run the following command to get the outgoing mail server: Get-OutboundConnector | Select-Object -ExpandProperty SmartHost
  3. Run the following command to get the incoming mail server: Get-ReceiveConnector -Identity "Default" | Select-Object -ExpandProperty SmartHost

Method 3: Using the Exchange Management Shell

  1. Open the Exchange Management Shell.
  2. Run the following command to get the outgoing mail server: Get-OutboundConnector | fl SmartHost
  3. Run the following command to get the incoming mail server: Get-ReceiveConnector -Identity "Default" | fl SmartHost

Note: The above commands will display the mail servers in the format smtp.<domain>.com, where <domain> is the domain name of your Exchange organization.

Alternatively, you can also check the Exchange server's DNS records to find the mail servers. The MX records will point to the incoming mail server, and the TXT records will contain the outgoing mail server information.