Troubleshoot the SMTP Server

The SendMail function in PeopleSoft uses the SMTP server to send emails. The first thing to do when troubleshooting problems with emails not being sent is to make sure your SMTP server is up and running. In this post, I will show you how to verify if you can connect to the SMTP server as well as manually sending an email!

Note: I’m using Unix Telnet to connect to the SMTP sever.

Let’s get started by trying to connect to the server:

Open a telnet session and login to the server box you would like to test sending emails from. I will be logging in to a DEV environment.

Step one:
Once logged in successfully, type:

$ telnet 25

And you shoud see...
Trying...
Connected to .
Escape character is '^]'.
220 ESMTP Sendmail 8.11.7p3+Sun/8.11.6; Mon, 14 Apr 2008 14:24:56 -0500 (CDT)
 

Great our DEV box allowed to connect to the SMTP server.

 

Step Two:
Send an email manually:
Lets identify ourselves with the HELO command and the domain name we are coming from. For example, if your work email address is [email protected] then your domain name would be yourcompany.com

helo yourcompany.com

And you should see…
250 Hello serverbox.yourcompany.com , pleased to meet you

 

Now type the email address you want the email to appear from:

mail from:[email protected]
250 2.1.0 [email protected]... Sender ok

Now type the email address you would want the message to go to:
rcpt to:[email protected]
250 2.1.5 [email protected]... Recipient ok

Now, lets type the email message. You will need to issue the command "data" then start typing your message, once done click enter and type "." And then enter. A single point "." On a line by itself followed by and enter means you are done typing your message.

 

data
354 Enter mail, end with "." on a line by itself
This is a test email using SMTP.
.
250 2.0.0 m3EJaMf21424 Message accepted for delivery

To send your message just type "quit" in the command line and your done.
quit
221 2.0.0 closing connection
Connection closed.

转载于:https://www.cnblogs.com/GoDevil/archive/2008/08/28/1278596.html

你可能感兴趣的:(Troubleshoot the SMTP Server)