Email flow testing with telnet

Not sure if I am doing thing right. Here is how I test the email flow with telnet
let's say I want to test our exchange(xyz.com) outgoing connection to a company domain abc.com

telnet abc.com 25   -> (here I should put my domain or the recipient domain?)

ehlo xyz.com   -> (here I should put my domain or the recipient domain?)

mail from:okamon@xyz.com
rcpt to:jess@abc.com
data
Testing
.
okamonAsked:
Who is Participating?
 
MadParCommented:
telnet abc.com 25   -> (here you should put recipient domain server name, that you can receive via MX DNS Record query (nslookup -q=mx microsoft.com), i.e. if you testing outbound connection from your server to mail servers of Microsoft Corp, you must query MX record for microsoft.com)

ehlo xyz.com   -> (here you should put FQDN of you server that designated in your Internet send connector's properties )

mail from:okamon@xyz.com
rcpt to:jess@abc.com
data
Testing <Enter>
.(dot)<Enter>
0
 
okamonAuthor Commented:
>>if you testing outbound connection from your server to mail servers of Microsoft Corp, you must query MX record for microsoft.com

So you mean I need to use telnet mail.messaging.microsoft.com 25 instead of telnet microsoft.com 25 ??
0
 
MadParCommented:
Yes. microsoft.com - is A-record for domain. On this server is not running SMTP server and it reject connection. mail.messaging.microsoft.com - MX-record (Mail eXchanger) host resposible for mail in microsoft domain.
0
 
okamonAuthor Commented:
Thank you!! I got it. So by using the telnet, I can see my outgoing email issue , but what if the sender reported they cannot send to our domain? how do I run the test? do I have to run the telnet outside of my network?
0
 
MadParCommented:
https://www.testexchangeconnectivity.com/ Internet E-Mail tests section
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.