Receive Connector (odd question)

CWT 391 Reputation points
2020-08-20T03:20:42.143+00:00

Good evening,

Gone through quite possibly all online documents related to Exchange Receive Connectors so I feel as though I have a good understanding regarding the default connectors Exchange creates upon installation. Most articles seem to agree agree that leaving them alone is probably a better option (essentially just create new as needed). Based on my limited experience Exchange seems to do a pretty good job straight out of the box.

That said, here is my question(s)
If the goal of an environment is to completely lock down all mail relay to specific IP addresses based on requirements (internal and external ect), would the following 4 new Receive Connectors accomplish that goal? I have never heard of this being done before and definitely never seen it. Is it as straight forward as it sounds (examples below)?

1 Connector for Inbound mail flow locked down to the appliance IP addresses (essentially replacing the Default Frontend SERVERNAME connector.
1 Connector for internal relay marked for Anonymous (printers/applications/things like that) that require no username/password for authentication (locked down to IPs).
1 Connector for internal relay marked as Authenticated for devices/apps/ect that do require usernames/passwords for internal/external recipients (also locked to IPs).
1 Connector for Anonymous relay to external recipients only based on the following command (non accepted domains).
Add-ADPermission -User 'NT AUTHORITY\Anonymous Logon' -ExtendedRights MS-Exch-SMTP-Accept-Any-Recipient

Based on articles I have read, outside of adding Authentication types (TLS, Integrated Windows authentication, and Basic authentication) accordingly, does this work as expected? Definitely adding connectors that technically do not need to be since by default internal relay is already covered using the Default Frontend SERVERNAME. However, this would lock down all mail relay attempts if specific IP addresses were added to the appropriate scope would they not?

Thanks for any feedback you may have. Much appreciated.

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,578 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 149.2K Reputation points MVP
    2020-08-20T11:25:23.977+00:00

    Yes, that would work for the most part. However, when you lock down to IPs, they have to be exclusive to that connector.
    In other words, for the 4th connector, if the IP connecting is the same IP or in the same IP range as an IP that is allowed to connect to the 2nd or 3rd connector using port 25, that wont work unless you happen to have multiple NICs and can scope that connector to its own local NIC.
    The custom connectors have to each have their own unique remote IPs/Port combinations.

    Make sense?

    BTW, the way you tell which connector is being used to enable SMTP protocol logging on each one
    The connector name will show up in those logs
    https://learn.microsoft.com/en-us/exchange/mail-flow/connectors/configure-protocol-logging?view=exchserver-2019

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. CWT 391 Reputation points
    2020-08-20T20:05:27.707+00:00

    We are crystal clear now sir. As always thank you for the extremely useful info :o)

    CWT

    1 person found this answer helpful.
    0 comments No comments

  2. CWT 391 Reputation points
    2020-08-20T17:03:57.05+00:00

    Think I'm tracking.

    1 Connector on SERVER1 set to 10.10.10.15
    1 Connector set to range on SERVER2 10.10.10.10-10.10.10.20
    Outcome = can't relay unless multi NIC? That correct?

    Question:
    Since individual IP addresses are connector specific and cannot be added to say all 4 Receive Connectors on all servers in the DAG, it also means that if that server hosting these single IP addresses is in maintenance mode, is rebooted, or goes completely offline mail relay completely breaks doesn't it? At least until that single server goes back online OR those IP addresses are copied over to another server that is accessible. Is that accurate?


  3. CWT 391 Reputation points
    2020-08-20T18:45:55.27+00:00

    100% clear on the high availability portion (i totally misunderstood your first reply and that threw me for a loop :o) - totally my fault lol

    The only thing I'm a little fuzzy on is the following. Based on what I though I understood, shouldn't Exchange use the most specific scoped setting that matches the connectors configuration? Essentially IP > IP Range > Network > All IPV4 address In the below example SERVER1 should be used when the client 10.10.10.15 attempts to relay correct?

    SERVER1 Connector (ANON) with authentication and anon permissions set using port 25 and scope 10.10.10.15
    SERVER2 Connector (ANON) we match the above configuration on SERVER1 EXCEPT we use the following range for its scope 10.10.10.10-10.10.10.20

    Thanks for kicking the tires :o)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.