Setup SMTP mail receiver
new-receiveconnector -Name ‘Receive from Internet’ -Bindings 0.0.0.0:25 -RemoteIPRanges 0.0.0.0-255.255.255.255 -permissionGroups “AnonymousUsers,ExchangeServers,ExchangeLegacyServers,AnonymousUsers”
Setup Receive MAX Message size 25MB
set-receiveconnector ‘Receive from Internet’ -MaxMessageSize 25Mb
Setup STMP mail sender deliver by DNS resolution
new-SendConnector -Name ‘Sent to Internet’ -Usage ‘Internet’ -AddressSpaces ’smtp:*;1′ -ForceHELO $true -Fqdn mail.domain.com.au -DNSRoutingEnabled $true -UseExternalDNSServersEnabled $false -SourceTransportServers ‘SERVER-EX01′
Setup STMP mail sender deliver using Smarthost
new-SendConnector -Name ‘Sent to Internet’ -Usage ‘Internet’ -AddressSpaces ’smtp:*;1′ -ForceHELO $true -Fqdn mail.domain.com.au -DNSRoutingEnabled $false -SmartHosts ‘[192.168.0.5]‘ -SmartHostAuthMechanism ‘None’ -UseExternalDNSServersEnabled $false -SourceTransportServers ‘SERVER-EX01′
Obviously replace the server name, fqdn and smarthost in the scripts.





Leave a Reply
You must be logged in to post a comment.