0% found this document useful (0 votes)
4 views20 pages

App Relay Build Document

The document outlines the installation and configuration steps for an App Relay Server, including setting up EDGE servers, accepted domains, and various connectors. It details commands for managing receive and send connectors, adjusting IP ranges, and exporting/importing transport rules. The document serves as a comprehensive guide for administrators to establish and maintain an App Relay Server environment.

Uploaded by

ABDULLAHIL BAKI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views20 pages

App Relay Build Document

The document outlines the installation and configuration steps for an App Relay Server, including setting up EDGE servers, accepted domains, and various connectors. It details commands for managing receive and send connectors, adjusting IP ranges, and exporting/importing transport rules. The document serves as a comprehensive guide for administrators to establish and maintain an App Relay Server environment.

Uploaded by

ABDULLAHIL BAKI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 20

build document of app relay server

Prepared By: Md. Ruhul Amin

Techone global
Bangladesh
Table of Contents

Installtion of EDGE Server............................................................................................................................2


Add accepted domains..............................................................................................................................13
Set Permissions to Default Receive connector..........................................................................................14
Set internal domain to bypass Content Filter............................................................................................14
Create Internet facing Send Connector.....................................................................................................15
Create Internal send Connector................................................................................................................15
Set Smart Hosts to Internal Send Connector.............................................................................................16
Collected existing App relay servers remote IP Ranges.............................................................................16
Adding remote IP ranges to New receive connector.................................................................................17
Add Bulk IP ranges to Receive Connector..................................................................................................17
Remove an IP or Bulk remote IP from Receive connector.........................................................................18
Export Existing Transport Rule...................................................................................................................18
Import Existing Transport Rule to New app mail server............................................................................18
Installtion of EDGE Server
Add accepted domains
Get-ReceiveConnector

New-AcceptedDomain -DomainName lankabangla.com -DomainType Authoritative -Name Lab AD


Set Permissions to Default Receive connector.

Set-ReceiveConnector "SMTP\Default internal receive connector SMTP" - AuthMechanism “Tls,


Integrated, BasicAuth” -PermissionGroup ExchangeUsers, Anonymoususers

Get-ReceiveConnector " SMTP\Default internal receive connector SMTP " | Add-ADPermission -User 'NT
AUTHORITY\Anonymous Logon' -ExtendedRights MS-Exch-SMTP-Accept-Any-Recipient

Set internal domain to bypass Content Filter

Set-ContentFilterConfig -BypassedSenderDomains lankabangla.com

Get-ContentFilterConfig
Create Internet facing Send Connector

New-SendConnector -Name "To Internet" -AddressSpaces * -Internet

Create Internal send Connector

New-SendConnector -Name 'To Internal' -Usage 'Custom' -AddressSpaces 'SMTP:thecitybank.com;2' -


IsScopedConnector $false -DNSRoutingEnabled $false -SmartHosts '192.168.201.82' -
SmartHostAuthMechanism 'None' -UseExternalDNSServersEnabled $false

Get-SendConnector -Identity "To Internal" |fl *


Set Smart Hosts to Internal Send Connector

Get-SendConnector -Identity "To Internal" | Set-SendConnector -SmartHosts


'192.168.201.82','192.168.201.83','192.168.201.84'

Get-SendConnector -Identity "To Internal" |fl *

Collected existing App relay servers remote IP Ranges

Get-ReceiveConnector "appmail\APPMAIL"| select -ExpandProperty remoteipranges|export-csv c:\


filename.csv

Get-ReceiveConnector "appmail\APPMAIL" | fl > c:\relayIPs.txt


Adding remote IP ranges to New receive connector

Below command will replace all the IP’s with 192.168.49.20:

Set-ReceiveConnector "SMTP\Default internal receive connector SMTP" -RemoteIPRanges


172.16.16.135

Add Bulk IP ranges to Receive Connector

$RecvConn = Get-ReceiveConnector " SMTP\Default internal receive connector SMTP "

$RecvConn.RemoteIPRanges
+="172.16.16.135","172.16.16.146","192.168.35.250","192.168.246.10","192.168.212.52","172.17.171.
102","192.168.246.52","192.168.243.206","192.168.246.18","192.168.48.24","192.168.243.138","192.1
68.200.83","192.168.246.39","192.168.246.171","172.17.171.38","192.168.246.98","192.168.246.136","
192.16
8.246.21","192.168.246.20","192.168.212.51","192.168.212.50","192.168.243.27","192.168.243.26","19
2.168.201.11","192.168.201.10","192.168.201.12","192.168.246.111","192.168.200.69","192.168.245.8
9","192.168.245.90","192.168.246.146","192.168.100.99","192.168.201.62","192.168.248.13","192.168.
243.25","192.168.243.21","192.168.243.20","192.168.243.22","192.168.246.7","192.168.246.59","172.1
7.171.34","192.168.200.48","192.168.246.99","172.17.171.50","172.17.171.31","192.168.246.58","192.
168.243.3","192.168.243.4","192.168.243.5","192.168.243.99","172.17.171.75","192.168.246.109","192
.168.246.108","192.168.246.49","192.168.246.47","192.168.246.46","172.17.171.23","192.168.246.169
","172.17.171.65","192.168.246.27","192.168.246.160","192.168.246.165","172.17.171.51","172.17.171
.42","192.168.246.145","192.168.246.54","192.168.100.38","192.168.246.29","192.168.246.149","192.1
68.246.132","192.168.246.102","192.168.246.88","192.168.246.48","192.168.248.28","192.168.246.142
","172.17.171.32","192.168.246.197","172.17.171.97","172.17.171.87","192.168.220.53","192.168.246.
144","192.168.246.57","192.168.246.148","192.168.100.180","192.168.100.181","192.168.100.182","19
2.168.246.53","192.168.246.133","172.17.171.95","192.168.200.91","192.168.200.90","192.168.246.40
","172.17.171.35","192.168.246.26","192.168.248.9","172.17.171.37","172.17.171.20"

Set-ReceiveConnector "appmail01\Default internal receive connector APPMAIL01" -RemoteIPRanges


$RecvConn.RemoteIPRanges
Remove an IP or Bulk remote IP from Receive connector

$RecvConn = Get-ReceiveConnector "appmail01\Default internal receive connector APPMAIL01"

$RecvConn.RemoteIPRanges -= "192.168.35.250"

Set-ReceiveConnector "appmail01\Default internal receive connector APPMAIL01" -RemoteIPRanges


$RecvConn.RemoteIPRanges

Export Existing Transport Rule

$file = Export-TransportRuleCollection

Set-Content -Path "C:\Rules.xml" -Value $file.FileData -Encoding Byte

Import Existing Transport Rule to New app mail server

[Byte[]]$Data = Get-Content -Path "C:\TransportRules\ExportedRules.xml" -Encoding Byte -ReadCount 0;


Import-TransportRuleCollection -FileData $Data

You might also like