<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2525 " id="quads-ad2525" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<p>In order to test Office 365 SMTP relay you will have to create a user with an Exchange online license. After the email is activated for this user you can test this user for relay with the following powershell.</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2530 " id="quads-ad2530" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2523 " id="quads-ad2523" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2529 " id="quads-ad2529" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<p>First connect to Microsoft Online service with this user that you’ll be using for relaying.</p>



<p><strong><span class="has-inline-color has-green-color">$msolcred = Get-Credential</span></strong></p>



<p>Next edit the following powershell with the user’s e-mail and the recipient’s too</p>



<p><strong><span class="has-inline-color has-green-color">Send-MailMessage -From Office365User@Domain.com -To info@moh10ly.com -Subject &#8220;Test Email&#8221; -Body &#8220;Test SMTP Relay Service&#8221; -SmtpServer smtp.office365.com -Credential $msolcred -UseSsl -Port 587</span></strong></p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2531 " id="quads-ad2531" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<figure class="wp-block-image is-resized"><a href="http://lh3.googleusercontent.com/-cxGnGOu_2uQ/VUyiXSlarQI/AAAAAAAAOm0/kqLNtJJTb90/s1600-h/clip_image001%25255B3%25255D.png"><img src="https://i0.wp.com/lh3.googleusercontent.com/-2OwLH-QciM4/VUyiYRCALBI/AAAAAAAAOm8/dTZjVcg1s9I/clip_image001_thumb.png" alt="clip_image001" width="773" height="217" title="clip_image001"/></a> 

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2527 " id="quads-ad2527" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 
</figure>



<figure class="wp-block-image"><a href="http://lh3.googleusercontent.com/-t3h4t8x9sgM/VUyiZYm4I1I/AAAAAAAAOnE/WynFyHOqF2k/s1600-h/clip_image002%25255B3%25255D.png"><img src="https://i0.wp.com/lh3.googleusercontent.com/-uyAOUkNmhno/VUyiaNUy4DI/AAAAAAAAOnM/x1Wsjx_RrhY/clip_image002_thumb.png" alt="clip_image002" title="clip_image002"/></a></figure>



<p><a href="https://technet.microsoft.com/en-us/library/dn554323(v=exchg.150).aspx">https://technet.microsoft.com/en-us/library/dn554323(v=exchg.150).aspx</a></p>



<p>This test is known as Client SMTP submission you can also use a different method for multiple devices where you can configure them all to point to a single server (IIS) in a method known as IIS for relay with Office 365 however, all the methods what involve office 365 (Only) for relay will require a user with Exchange online license assigned to it.</p>



<p><a href="https://technet.microsoft.com/en-us/library/dn592151%28v=exchg.150%29.aspx">https://technet.microsoft.com/en-us/library/dn592151%28v=exchg.150%29.aspx</a></p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2522 " id="quads-ad2522" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<p></p>



<h2 class="wp-block-heading">Note: </h2>



<p>The use of this command is not recommended for security reasons in particular for not supporting the modern protocols. use it on your own risk and make sure the user assigned to this service has no privilege&#8217;s or not any Office 365 feature admin or power user. </p>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2528 " id="quads-ad2528" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>


Reset and manage your Active Directory users' Passwords Active Directory is one of the most…
Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…
If you're using a Proxy server in your firewall or in your network and have…
Story:I got some clients that have reported some of their users being locked out and…
Delegate Permissions This is a code that I have wrote recently to check if an…
Story: I got a request from a client who constantly gets CVs and have to…