It appears you don't have the domain for your stafswin2008r2 machine set 
up correctly based on the error message in your Email service log.  The 
default FROM id used if you don't specify the FROM option on your EMAIL 
SEND TO request is STAFEmailService@<Your Machine Name> where <Your 
Machine Name> should be a fully-qualified domain name like stafswin2008r2
.company.com.  However, your machine name is stafswin2008r2 (not a 
fully-qualified domain name).

Refer to section "3.1.4 Why can't my STAF machines communicate?" in the 
STAF FAQ at 
http://staf.sourceforge.net/current/STAFFAQ.htm#STAF%20machines%20can%27t%20communicate%20due%20to%20DNS%20issues
 
and see how to change your DNS settings on Windows.  Once you're set up 
the DNS settings correctly, when your start STAFProc, you should see a 
fully-qualified host name show up for the machine.  Here's as example. 
Note that company.com seen for your "Machine" value should be whatever 
your domain name is:

C:\>STAFProc

Machine          : stafswin2008r2.company.com
Machine nickname : stafswin2008r2.company.com
Startup time     : 20110802-12:55:23

STAFProc version 3.4.6 initialized

You can also verify that this is set up correctly by checking the value of 
the STAF/Config/Machine variable.  For example:

C:\>STAF local VAR RESOLVE STRING {STAF/Config/Machine}
Response
--------
stafswin2008r2.company.com

Once you have your DNS settings on this machine fixed, retry sending an 
email using the STAF Email service to see if it works.

Here's an example of the messages logged in the Email service log when I 
successfully send a message using the Email service from my machine that 
has fully-qualified host name client1.austin.ibm.com:

C:\>staf local email send to jane...@us.ibm.com SUBJECT "Test" MESSAGE 
"Testing 123..."

20110802-12:56:31 Info  [local://local:92] SEND TO [jane...@us.ibm.com] 
FROM stafemailserv...@client1.austin.ibm.com SUBJECT Test CONTENT TYPE 
text/plain
20110802-12:56:32 Info  [local://local:92] 220 d03mailsrv.boulder.ibm.com 
ESMTP Sendmail 8.14.4/8.13.1/NCO v10.0 AVin; Tue, 2 Aug 2011 12:02:04 
-0600
20110802-12:56:32 Info  [local://local:92] 250 d03mailsrv.boulder.ibm.com 
Hello client1.austin.ibm.com [9.41.99.999], pleased to meet you
20110802-12:56:32 Info  [local://local:92] 250 2.1.0 
stafemailserv...@client1.austin.ibm.com... Sender ok
20110802-12:56:32 Info  [local://local:92] 250 2.1.5 jane...@us.ibm.com... 
Recipient ok
20110802-12:56:32 Info  [local://local:92] 250 Mail queued for delivery.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   John Andoh <john.an...@gmail.com>
To:     Sharon Lucas/Austin/IBM@IBMUS
Cc:     staf-users@lists.sourceforge.net
Date:   08/01/2011 08:56 PM
Subject:        Re: [staf-users] STAF send mail not working...



Hi Sharon,
 
Thanks for the excellent suggestions!
 
Fyi, the command, C:\>STAF local LOG QUERY MACHINE 
{STAF/Config/MachineNickname} LOGNAME email, returned the following 
response:
 
Response
--------
Date-Time         Level Message
----------------- ----- 
-------------------------------------------------------
20110801-16:48:34 Info  [local://local:82] SEND TO [john.an...@company.com
] CC [] BCC [] FROM STAFEmailService@stafswin2008r2 SUBJECT Test Message 
CONTENTTYPE text/plain
20110801-16:48:34 Info  [local://local:82] 220 usindmail01.company.com 
ESMTP Sendmail 8.14.1/8.14.1; Mon, 1 Aug 2011 19:57:45 -0400 (EDT)
20110801-16:48:34 Info  [local://local:82] 250 usindmail01.company.com 
Hello usindnetf5-vlan4float.corp.company.com [10.74.12.196], pleased to 
meet you
20110801-16:48:34 Error [local://local:82] 553 5.1.8 
STAFEmailService@stafswin2008r2... Domain of sender address 
STAFEmailService@stafswin2008r2 does not exist
 
 
The server sending the STAF email is: stafswin2008r2. DNS nslookup can 
resolve "stafswin2008r2" to a valid IP address.
 
What else do I need to resolve the sender's address, 
STAFEmailService@stafswin2008r2?
 
Thanks in advance for your help.
 
Regards,
John Andoh
 
 


 
On Mon, Aug 1, 2011 at 4:09 PM, Sharon Lucas <luc...@us.ibm.com> wrote:
Can you ping your mail server by host name from the machine where the 
Email service is registered?  e..g ping mail.company.com 

If this doesn't work, then you need to resolve this problem (which has 
nothing to do with STAF) before you can use it as a mail server for the 
STAF Email service. 

If this does work, then do the following: 

Make sure you are you using the latest version of the Email service which 
is V3.3.5. You can check the version by running: STAF local EMAIL VERSION 

Are there are any errors in your Email service log? You can view the log 
by running: 

    STAF local LOG QUERY MACHINE {STAF/Config/MachineNickname} LOGNAME 
email 
See section "Using Telnet to Debug Mail Server Problems" in the STAF Email 
Service User's Guide at 
http://staf.sourceforge.net/current/email.html#Header_Telnet and try to 
submit the same email request via telent.  It should fail the same way the 
STAF Email service fails.  If so, you will need to investigate why your 
mail server is unable to send the email. 

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:        John Andoh <john.an...@gmail.com> 
To:        Sharon Lucas/Austin/IBM@IBMUS 
Cc:        staf-users@lists.sourceforge.net 
Date:        08/01/2011 05:40 PM 
Subject:        [staf-users] STAF send mail not working... 



Hi Sharon, et al:
Fyi, the send mail portion of STAF is not working on my server. 
  
The STAF mailserver is configured as follows: 
  
service EMAIL library JSTAF execute 
{STAF/Config/STAFRoot}/services/email/STAFEmail.jar  PARMS MAILSERVER 
mail.company.com 
  
But, sending mails get these error messages: 
  
  
C:\> 
C:\>staf local email send to john.an...@company.com subject "Test Message" 
message "Hello and Welcome to STAF/STAX" 
Error submitting request, RC: 4001 
Additional info 
--------------- 
Socket IO Error: java.net.UnknownHostException: mail.company.com 
Mailserver: mail.company.com Port: 25 
  
C:\> 
  
  
C:\>nslookup mail.company.com 
Server:  dns.company.com 
Address:  123.45.34.254 
  
Non-authoritative answer: 
Name:    mail.company.com 
Address:  10.12.34.124 
Aliases:  mail.company.com 
  
  
DNS is working OK. Firewall rules have been updated to allow send mails 
from the STAF server 
So, I don’t know what is going on. 
Please help! Thanks! 

Regards,
John Andoh
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to