How to check an SMTP connection to Office365 with a manual telnet session

How to check an SMTP connection to Office365 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

    • Snapper User Manual

      Snapper User Manual Updated: July 16, 2015 The ANYWHERE365 Snapper can be used to display real-time information about an UCC.   Agent overview In the top button of the Snapper all Agents of the selected UCCwill be shown. Per Agent the following will ...
    • 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 ...
    • 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 ...
    • Office 2016 Quickstart Guides

      Here are a few documents provided by Microsoft, outlining some of the basic features of your favorite Office applications.