| Posted by: DogMan - 25 May 2026 09:00:57 |
|---|
| how could I stop MS exchange 2019 allowing a remote IP tp use a telnet sesssion to send to a local address from a local domain addreess? |
| Posted by: sirclesadmin - 25 May 2026 09:04:24 |
|---|
|
To stop an unauthenticated telnet session from spoofing your internal domain (e.g., using By default, the **Default Frontend ** receive connector listens on Port 25 and has Here are the two best ways to fix this. Method 1: Stripping Anonymous "Send-As" Rights for Internal Domains (Recommended)You can tell the inbound internet receive connector that anonymous connections are allowed to deliver mail, but they are not allowed to claim they are coming from an authoritative internal domain. Run the following command in the Exchange Management Shell (EMS):
What this does:If someone opens a telnet session from a remote IP and types
Method 2: Isolating Untrusted Remote IPs with a Dedicated ConnectorIf you want to enforce this restriction strictly for specific remote IPs or external subnets without breaking internal apps, you can use Exchange's "most specific IP match" logic. Exchange evaluates incoming IP connections and maps them to the connector with the narrowest matching IP range. 1. Create a Secure Internal/Partner ConnectorCreate a dedicated connector for your legitimate internal apps, printers, or trusted external gateways (like Mimecast or Proofpoint) so they can still relay securely:
2. Lock Down the Default Frontend ConnectorOnce your trusted devices are safely shifted to their own connector, you can strip the dangerous anonymous rights or explicitly use Exchange Anti-Spam features on the Default Frontend connector to reject internal domain spoofing from untrusted external spaces. Ensure the native Anti-Spam agents are installed:
Then, enable internal domain validation:
Verification TestingTo verify it is successfully blocked, open a command prompt or terminal from the remote IP and replicate the attack via telnet:
If configured correctly, you should receive a |
| Posted by: DogMan - 25 May 2026 09:14:19 |
|---|
| I have another internal SMTP server for scanners etc. that is not presented to the web so method one will suit me |