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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.