You might like to give the version of OEM as well - though if you reply to this
message cut the Metalink extracts out to reduce message size
Doc ID: Note:74269.1
Type: BULLETIN
Status: PUBLISHED
Content Type: TEXT/PLAIN
Creation Date: 22-SEP-1999
Last Revision Date: 23-APR-2002
Goal:
How to test and diagnose why SMTP email notifications do not work from
Enterprise Manager.
Environment:
Oracle Enterprise Manager
Simple Mail Transport Protocol (SMTP)
Solution:
With the steps listed below, email is tested outside the Enterprise Manager
product to determine if the actual problem is with the SMTP configuration or
the Enterprise Manager product.
IMPORTANT NOTE! Go slowly. Any backspacing will corrupt the email message. If a
message from SMTP comes back saying "unrecognized command", start over.
Also, the responses from the local SMTP server may be a little different
from those described in this document.
1. Start a telnet session to the SMTP server's communication port.
From a command prompt on either Windows NT or Unix, type:
telnet <smtp_server> 25 <ENTER>
Where:
- <smtp_server> is the local smtp gateway name.
The name must match the name provided in the Gateway configuration
window inside the EM Console.
- 25 is the SMTP communication port
2. A telnet session should open with a response from SMTP:
response from smtp ---> 220 ukxxx1 Sendmail SMI-8.6/SMI-SVR4 ready at
Thu, 16 Sep 1999 15:14:25 +0100
NOTE:
If the telnet session is running on Windows NT, customize the terminal
settings to echo back what is typed in at the command prompt:
Choose Terminal, then Preferences, then Local echo.
3. Now introduce the client machine to the server by typing:
helo <ENTER>
(The correct spelling is helo - not hello)
A response from smtp ---> 250 ukxxx1 Hello userver.uk.oracle.com
[xxx.xxx.xxx.xxx], pleased to meet you
If a message is returned ---> 501 helo requires domain address
Then type: ---> helo uk.oracle.com
(substitute uk.oracle.com with the local domain of the SMTP server)
4. Tell the SMTP Gateway who the test email is coming fro by typing:
-------> mail from: [EMAIL PROTECTED] <ENTER>
([EMAIL PROTECTED] is the same name listed in the SMTP Gateway Configuration
window in the EM Console)
If a message is returned ---> 501 Syntax error in return path
Then type: ---> mail from: <[EMAIL PROTECTED]> <ENTER>
NOTE: Include the angle brackets around the address.
A response from smtp ---> 250 [EMAIL PROTECTED] Sender ok
5. Tell the SMTP Gateway who to send the test email to by typing:
--------> rcpt to: [EMAIL PROTECTED] <ENTER>
or
--------> rcpt to: <[EMAIL PROTECTED]> <ENTER>
(if using the address enclosed in angled bracket in previous step)
([EMAIL PROTECTED] is the email receiver name listed in the EM Console)
A response from smtp ---> 250 [EMAIL PROTECTED] Recipient ok
6. Tell the SMTP Gateway what type of information is being sent by typing:
-------> data <ENTER>
A response from smtp ---> 354 Enter mail, end with "." on a line
by itself
7. Enter the test message and remember to close the email with a dot "."
Type ---> Subject: SMTP Test <ENTER>
Hello this is an smtp test for EM. <ENTER>
. <ENTER>
A response from smtp ---> 250 PAA15913 Message accepted for delivery
8. End the SMTP connection session by typing:
--------> quit <ENTER>
response from smtp ---> 221 ukxxx1 closing connection
The connection has been terminated.
The email should then be delivered to the receiver via the SMTP server.
If the command line test doesn't work, hopefully a helpful error messages from
the SMTP server will be displayed indicating a problem will be with the SMTP
server setup and not with Enterprise Manager.
However, if the command line test is successful, a problem may exist with the
EM interface or with the local configuration of EM. To obtain further debugging
information, turn on OMS Tracing as outlined in [NOTE:69522.1] How to Activate Logging
and Tracing for EM 2 Components