How to create a Receive Connector with PowerShell

Receive Connectors are used to control the flow of inbound messages into Exchange. With Exchange 2016 they are configured on servers with the Transport service (all mailbox servers) or with the Front End Transport service (all Client Access servers).

We can configure a Receive Connector in two different places. Difference is that the Front End Transport service does not queue any messages locally while the Transport service does. All the Receive Connectors required for internal mail flow are automatically created when a Client Access server or Mailbox server is installed.

Get Receive Connector

Set default Receive Connector

Create Receive Connectors

Custom Receive Connectors are required for various reasons: to control which servers receive messages from a particular IP address; to configure special connector properties for messages received from a particular IP address such as allowing larger messages or more recipients per messages; or to allow servers, applications or devices such as printers to establish unauthenticated SMTP connections to Exchange in order to send e-mails.

To create Receive Connectors in Exchange 2016 we can use the Exchange Administration Center or the Exchange Management Shell. II’ll will be using the Exchange Management Shell to create a Receive Connector that:

  • Is associated with the Mailbox server called EXCHANGE01
  • Listens for incoming SMTP connections on the IP address 192.168.1.45 and port 2526
  • Accepts incoming SMTP connections only from the IP range of 192.168.1.50 to 192.168.1.60
  • Accepts e-mails of a size up to 50MB

If the Exchange server is multi-role and has the Client Access and Mailbox server roles our example would become:

Thank you for spending some time at my site and in my blog. I hope you come to visit again soon 😉

About Lex van der Horst 201 Articles
Techwire

Be the first to comment

Leave a Reply