otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire


SysAdmin and Management Managing and monitoring OTM / G-Log and other administrative activities.

Tags: , , , ,

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 6th, 2007, 21:34
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 847
Blog Entries: 7
Thanks: 53
Thanked 205 Times in 124 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 10
chrisplough has a spectacular aura aboutchrisplough has a spectacular aura aboutchrisplough has a spectacular aura about
Send a message via AIM to chrisplough
[SOLVED] Testing SMTP mail relay via telnet

Often, on new installations, there are issues with OTM sending out email notifications to implementers, carriers, etc. In order to help troubleshoot these, I usually test the email relay server manually via telnet in order to ensure it is working.

First, get the email server that OTM is configured to use from the glog.properties file on the OTM app server. Look for the following parameter:
Code:
glog.mail.smtp.host=smtp.company.com
Also get the user that the OTM server is configured to send mail as from the same file:
Code:
glog.workflow.notify.advisor.email=GLogAdvisor@otm.company.com
For this example, we'll send a test email to mavenwire@gmail.com. To test via telnet, run the following commands (marked in bold) from a DOS or Unix command prompt. Make sure to run these commands from the OTM App server, to test the connection as if OTM you were the OTM server.
Code:
telnet smtp.company.com 25 
Connected to smtp.company.com.
Escape character is '^]'.
220 smtp.company.com ESMTP Sendmail Switch-2.2.8/Switch-2.2.8; Thu, 7 Jun 2007 01:01:01 -0500
HELO company.com
250 smtp.company.com Hello [otm.company.com], pleased to meet you
MAIL FROM: GLogAdvisor@otm.company.com
250 2.1.0 GLogAdvisor@otm.company.com... Sender ok
RCPT TO: mavenwire@gmail.com
250 2.1.5 mavenwire@gmail.com... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
Subject: Test email from OTM App server
This is a test email from the OTM App server.  Wheeeeeeeee!
.
250 2.0.0 156K62L05857 Message accepted for delivery
QUIT
221 2.0.0 smtp.company.com closing connection
Connection closed by foreign host.
If relaying is denied, you'll see the following error:
Code:
RCPT TO: mavenwire@gmail.com
550 5.7.1 mavenwire@gmail.com... Relaying denied.  IP name lookup failed [192.168.1.1]
Alternately, if you don't receive the email at the destined email box, the issue is likely with your mail server or some intermediary mail server and you can begin troubleshooting from there.

Hope this helps!

--Chris
__________________
Chris Plough
MavenWire

www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old June 6th, 2007, 23:41
Senior Member and Blogger
 
Join Date: May 2007
Posts: 170
Thanks: 4
Thanked 31 Times in 31 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
bmj_23 will become famous soon enough
Re: Testing SMTP mail relay via telnet

The only thing i would add is that on a lot of implementations, the first outbound email communication that gets tested is the shipment tender notification to the service provider.

In this case, OTM uses the LOGISTICS involved party contact defined on the order base, which gets copied to the shipment, as the basis of the email address for the "From:" contact on the outbound email.

If you are seeing issues with tender notifications not being generated, check that you have a LOGISTICS involved party on your order base / shipment and that the email address of that LOGISTICS involved party contact is a valid email address on your SMTP server.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old June 7th, 2007, 14:43
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 847
Blog Entries: 7
Thanks: 53
Thanked 205 Times in 124 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 10
chrisplough has a spectacular aura aboutchrisplough has a spectacular aura aboutchrisplough has a spectacular aura about
Send a message via AIM to chrisplough
Re: Testing SMTP mail relay via telnet

That is a very valid point - thank you!

One more note, I've also seen email addresses (To and From) included within integration files (XML and/or CSV control files), so you may need to check these for the From email address that is used and ensure it is also valid for yoru SMTP server.

--Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can 2 Mail ids be stored in a single Contact screen moshe Execution 6 October 6th, 2008 15:10
Reports development - testing error sridhartylam Reports / FTI and Other Analytics 3 February 8th, 2008 20:22
customizing mail notification Brintha Branding, Screen Sets, XSL/CSS and Translations 2 December 17th, 2007 16:54
[SOLVED] Testing PCMiler via telnet chrisplough SysAdmin and Management 0 June 28th, 2007 16:17
[SCRIPT] Testing Integration - mw-OtmPostWMServlet.pl chrisplough Integration and Data Mapping 0 April 27th, 2007 18:17



All times are GMT. The time now is 03:50.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37