Create new connector and assign relay permissions.

Pretty simple really,

Open your exchange power shell and enter the following cmds to create and set permissions on your new connector. Use the New-ReceiveConnectorcmdlet to create the Receive connector Anonymous Relay that listens on local IP addresses.

New-ReceiveConnector -Name “Anonymous Relay” -Usage Custom -PermissionGroups AnonymousUsers -Bindings -RemoteIpRanges


Now we must use the Exchange Shell to grant relay permission to anonymous connections on the new Receive connector.  The next cmd-let retrieves the specified Receive connector information and pipes the result to the Add-ADPermissioncmdlet to grant relay permission to anonymous connections on the new Receive connector.

Get-ReceiveConnector “Anonymous Relay” | Add-ADPermission -User “NT AUTHORITY\ANONYMOUS LOGON” -ExtendedRights “Ms-Exch-SMTP-Accept-Any-Recipient”

You can open up a telnet session to the IP of your exchange server and test the mail flow. This will confirm that your relay is up and running.


The first thing to do is to open a connection from your computer to your mail server.
telnet 25
You should receive a reply like:
Trying ???.???.???.???…
Connected to
Escape character is ‘^]’.
220 mail.domain.ext Microsoft Exchange Server

You will then need to delcare where you are sending the email from:
HELO – dont worry too much about your local domain name.

This should give you:
250 Hello [Your IP address],

Now give your email address:

Should yeild:
250 2.1.0 Sender ok

Now give the recipients address:

Should yeild:
250 2.1.0 Recipient ok

To start composing the message issue the command DATA

If you want a subject for your email type

Subject: type your subject here
You may now proceed to type the body of your message.

To tell the mail server that you have completed the message enter a single “.” on a line on it’s own.
The mail server should reply with: 250 2.0.0 ???????? Message accepted for delivery

You can close the connection by issuing the QUIT command.
The mailserver should reply with something like:

221 2.0.0 closing connection Connection closed by foreign host.



Tagged with:

Leave a Reply


%d bloggers like this: