How to check an SMTP connection to Office 365 with a manual telnet session

How to check an SMTP connection to Office 365 with a manual telnet session

1. Run a cmd as an admin

2. Type the following command:


telnet smtp.office365.com 25


Something similar to this will be shown:


220 SN4PR0401CA0021.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 27 Feb 2018 19:13:51 +0000


3. Type the following command and hit enter, please replace contoso.com with your own domain


ehlo <contoso.com>


The next command we need to add is the MAIL FROM command.  This determines the address to which tests are sent from.

4. Type the following command


mail from: <Ofice365 email address account>

You should receive Ok as confirmation


Now that the MAIL FROM command has been sent we can send the RCPT TO command.  This command tells the SMTP mail server to who the message should be sent.  

5. Type the following command


rcpt to: <Ofice365 email address account>

You should receive Ok as confirmation



The last command to run before starting the body of the message is the DATA command.  This command lets the SMTP mail server know that everything else about to be sent is the body of the message.

6. Type DATA


Now that the DATA command has been sent we can start sending the message contents. 


Hello World,
This is a test message sent from a manual telnet session.

 

After you add the body, hit enter and type (.) period, on a line itself to complete the session.


7. Lastly the QUIT command is sent to close the connection.


The recipient previuosly added should recieve the test email.

    • Related Articles

    • Create shared mailboxes in Office 365.

      Shared mailboxes in Office 365 make it easy for a group of people to monitor and send email from a common email addresses, like info@contoso.com, support@fourthcoffee.com or contact@contoso.com. When a person in the group replies to a message sent to ...
    • Office 365 Videos

      End user training resources for Office 365 - Partner Technical Services Blog - Site Home - TechNet Blogs The following Office 365 videos are available: Video: Welcome to Office 365 Video: Share Documents in Office 365 Video: Use email and more in ...
    • How to create groups in bulk on Office 365

      In this article we will talk about how to create groups in bulks inside Office 365. If this is a task you are trying to complete, the Script attached below will help you to achieve it. To read the group names and members, the script will ask you to ...
    • Office 365 Training Resources

      End user training resources for Office 365 - Partner Technical Services Blog - Site Home - TechNet Blogs If your organization signed up for Office 365 and you need to start reading email, sharing documents, and more, see the following resources to ...
    • How to add Team Venti as Digital Partner of Record for Office 365

      NOTE: Assignment of Digital Partner of Record (DPOR) can be changed at any time. For any concerns or questions regarding what DPOR see this guide from Microsoft: https://support.microsoft.com/en-us/help/3045939/digital-partner-of-record-dpor How to ...