Unable to send the email Notifications from DOORS client

Hi,

I have a DOORS server setup with proper smtp settings. When loged into DOORS server (on server machine) I am able to send the email Notifications and recipients gets the proper mails. But when I try to send the email notifications (using same DXL) from a client I am not able to send the email notifications.

Please help!

Here is the DXL code:


string pFromDescription = "sajjancs@XXXXXXXX.com"
string pkpTo = "sajjancs@XXXXXXXX.com"
string pSubject = "DOORS Test Mail"
string pMessage = "This is a new mail from DOORS Server"

Date tDate = dateOf(intOf(today))

string sEmailNotification = ""
sEmailNotification = sendEMailNotification ( pFromDescription, pkpTo, pSubject, pMessage )
if (!null sEmailNotification){
print tDate "\n"
print "Email Notification Message" sEmailNotification "\n" "******" "\n"
}


Regards,
Sajjan
SystemAdmin - Wed Sep 29 01:35:11 EDT 2010

Re: Unable to send the email Notifications from DOORS client
SudarshanRao - Wed Sep 29 02:22:05 EDT 2010

If the e-mails are not going from a client, then I suspect a problem with the client machine. Try disabling firewall and check if it helps.. if it does, then you can try adding doors.exe into allowed list of programs in your firewall..

Re: Unable to send the email Notifications from DOORS client
SystemAdmin - Wed Sep 29 06:39:31 EDT 2010

SudarshanRao - Wed Sep 29 02:22:05 EDT 2010
If the e-mails are not going from a client, then I suspect a problem with the client machine. Try disabling firewall and check if it helps.. if it does, then you can try adding doors.exe into allowed list of programs in your firewall..

Thanks,

But none of these option are helping.
Here is some more details of infrastructure with our team.
1. DOORS server maintained by our team.
2. SMTP server which is maintained by corporate IS team.
3. DOORS client machines which are used by us.

Now I have added the DOORS server to corporate firewall for SMTP relay do I need to add individual machines (DOORS Clients) for SMTP relay?

Or there is something else which I need to do?

Regards,
Sajjan

Re: Unable to send the email Notifications from DOORS client
Mathias Mamsch - Wed Sep 29 07:44:59 EDT 2010

SystemAdmin - Wed Sep 29 06:39:31 EDT 2010
Thanks,

But none of these option are helping.
Here is some more details of infrastructure with our team.
1. DOORS server maintained by our team.
2. SMTP server which is maintained by corporate IS team.
3. DOORS client machines which are used by us.

Now I have added the DOORS server to corporate firewall for SMTP relay do I need to add individual machines (DOORS Clients) for SMTP relay?

Or there is something else which I need to do?

Regards,
Sajjan

I am pretty sure it is not the DOORS server that sends the emails! It is the DOORS client! That is why your firewall does not block the email, when you sent it from the server, because on that machine your connection is not blocked.

You would need to add a rule for "doors.exe" for a SMTP server connection to the firewall settings of ALL user machines. There is a similar discussion in this forum (search for sendNotificationMail firewall).

Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Unable to send the email Notifications from DOORS client
llandale - Wed Sep 29 11:16:58 EDT 2010

Hate contradicting Mathias, but I believe Emails are sent from the client machine. Here's a technote:

http://www-01.ibm.com/support/docview.wss?uid=swg21324459&myns=swgrat&mynp=OCSSYQBZ&mync=E
As per the last paragraph, note that hard coded port "25" of the client must be open in the fire wall.

  • Louie

Re: Unable to send the email Notifications from DOORS client
Mathias Mamsch - Wed Sep 29 11:45:27 EDT 2010

llandale - Wed Sep 29 11:16:58 EDT 2010
Hate contradicting Mathias, but I believe Emails are sent from the client machine. Here's a technote:

http://www-01.ibm.com/support/docview.wss?uid=swg21324459&myns=swgrat&mynp=OCSSYQBZ&mync=E
As per the last paragraph, note that hard coded port "25" of the client must be open in the fire wall.

  • Louie

Maybe I did not bring this out right... That is what i tried to say. "not the server! It's the client". With "sending emails from the server" I meant sending it from a DOORS client on the DOORS server machine (which probably has no active firewall like the client computers). That would explain why it worked on the server machine, but not on other clients. Regards, Mathias

Re: Unable to send the email Notifications from DOORS client
llandale - Wed Sep 29 11:54:26 EDT 2010

Mathias Mamsch - Wed Sep 29 11:45:27 EDT 2010
Maybe I did not bring this out right... That is what i tried to say. "not the server! It's the client". With "sending emails from the server" I meant sending it from a DOORS client on the DOORS server machine (which probably has no active firewall like the client computers). That would explain why it worked on the server machine, but not on other clients. Regards, Mathias

Re reading I see. This explains why I hate to contradict you!

Re: Unable to send the email Notifications from DOORS client
ChrisAnnal - Mon Apr 11 09:45:45 EDT 2011

I came across this and thought I'd add my 2 cents. You don't mention what version of DOORS you're using, but there was a bug with email notifications that I discovered when upgrading from version 8.3 to version 9.3.0.0. The fix for that bug was just released in version 9.3.0.3.

PMR 42032,999,000 : DOORS: failed login email notifications not working

We used an old DXL email example script that IBM sent us to work with until the above fix was released, and managed to get that working, so we didn't have to upgrade to 9.3.0.3 (but did anyway for other reasons). I'm attaching the script here for your consideration. (If you haven't resolved the problem yet).

Chris AnnalSW Test Engineer / DOORS Database AdministratorSensis Corporation, East Syracuse, New Yorkchrisa@sensis.com
Attachments

attachment_14604984_smtpTest1.dxl

Re: Unable to send the email Notifications from DOORS client
SystemAdmin - Mon Mar 04 12:22:01 EST 2013

Hello,

I am able to get e-mails sent but when I'm trying to include more than one address the e-mails aren't sent. what's wrong with my syntax? Thank you.

/*
{bool|string} sendEMailNotification(string fromDescription,
string targetAddress, string subject,
string message)
*/
 
const string subject       = "Successful DOORSlinks(Lake Forest) Module maintenance"
const string message       = "Successful DOORSlinks Module maintenance"
//const string targetAddress = "ABC@ABC.com;ABC@yahoo.com"
 
sendEMailNotification(null, targetAddress, subject, message)


-Jim

Re: Unable to send the email Notifications from DOORS client
llandale - Mon Mar 04 13:38:58 EST 2013

SystemAdmin - Mon Mar 04 12:22:01 EST 2013

Hello,

I am able to get e-mails sent but when I'm trying to include more than one address the e-mails aren't sent. what's wrong with my syntax? Thank you.

/*
{bool|string} sendEMailNotification(string fromDescription,
string targetAddress, string subject,
string message)
*/
 
const string subject       = "Successful DOORSlinks(Lake Forest) Module maintenance"
const string message       = "Successful DOORSlinks Module maintenance"
//const string targetAddress = "ABC@ABC.com;ABC@yahoo.com"
 
sendEMailNotification(null, targetAddress, subject, message)


-Jim

Assuming you un-comment out the "targetAddress" declaration ... then I'd suppose you have configured Outlook to NOT use semi-colons as delimiters ... on this client PC.

Re: Unable to send the email Notifications from DOORS client
kbmurphy - Mon Mar 04 16:54:28 EST 2013

llandale - Mon Mar 04 13:38:58 EST 2013
Assuming you un-comment out the "targetAddress" declaration ... then I'd suppose you have configured Outlook to NOT use semi-colons as delimiters ... on this client PC.

Louie--this should have nothing to do with Outlook. This DXL is sending a command that says, "Send this via SMTP email". This doesn’t require Outlook. This does require that SMTP port 25 traffic is allowed on the computer sending the email.

I want to believe that the computer sending the email in this case would be the DOORS server, because "send email" is should really be a server function. But I bet it's the DOORS client that is sending the email.

To the OP: get your IT folks to confirm that port 25 traffic is allowed on user machines.

Good luck!

Kevin

Re: Unable to send the email Notifications from DOORS client
SystemAdmin - Tue Mar 05 02:32:13 EST 2013

SystemAdmin - Mon Mar 04 12:22:01 EST 2013

Hello,

I am able to get e-mails sent but when I'm trying to include more than one address the e-mails aren't sent. what's wrong with my syntax? Thank you.

/*
{bool|string} sendEMailNotification(string fromDescription,
string targetAddress, string subject,
string message)
*/
 
const string subject       = "Successful DOORSlinks(Lake Forest) Module maintenance"
const string message       = "Successful DOORSlinks Module maintenance"
//const string targetAddress = "ABC@ABC.com;ABC@yahoo.com"
 
sendEMailNotification(null, targetAddress, subject, message)


-Jim

Hi

This tread has been started in 2010.

> sendEMailNotification(null, targetAddress, subject, message)

You can send an email only to one receiver.

Best regards
Wolfgang

Re: Unable to send the email Notifications from DOORS client
SystemAdmin - Tue Mar 05 11:59:09 EST 2013

SystemAdmin - Tue Mar 05 02:32:13 EST 2013
Hi

This tread has been started in 2010.

> sendEMailNotification(null, targetAddress, subject, message)

You can send an email only to one receiver.

Best regards
Wolfgang

Just noticed that the DXL reference Manual has sendEMailNotification documented incorrect. see below. Thank you.

{bool|string} sendEMailNotification(string fromDescription, string targetAddress, string subject,
string message)
string sendEMailNotification(string fromDescription, Skip targetAddresses,
, Skip ccAddresses , Skip bccAddresses string subject,
string message)
sendEMailNotification(string fromDescription, Skip targetAddresses, Skip ccAddresses,Skip bccAddresses, string subject, string message)
sendEMailNotification(string fromDescription, Skip targetAddresses, string subject, string message)

-Jim

Re: Unable to send the email Notifications from DOORS client
llandale - Tue Mar 05 12:06:36 EST 2013

Here are my old notes on the subject; haven't confirmed them recently. IT shut something off and it no longer works on our system which is my I decided to go with the Outlook approach.
  • I’m trying to figure out exactly from where the Emails are sent; the documentation says ‘server’ but I suspect ‘client’. The ‘Sender’ is the non-existent unattended account ‘DOORS Mail Server’.
  • Port 25 must be open in the fire wall. Again, I wonder if that’s ‘Client’ or ‘Server’ and in this case I suspect ‘Client’ since its working without help from IT.
  • You configure the database with the above email and also the ‘SMTP Mail Server’, which is actually the ‘Relay’ server. For us that’s ‘relaytx001.northgrum.com’.
  • I suspect I’ll discover strange situations where email notification does not work; oh well.

Feedback submitted for tech note:
http://www-01.ibm.com/support/docview.wss?uid=swg21324459&myns=swgrat&mynp=OCSSYQBZ&mync=E

The following info is true, as best as I can tell, and if so should be included:
  • The 'SMTP Server' may also be known as the 'Relay server' on many systems.
  • Emails are sent to the DOORS user specified on the Login Policy tab of the DB properties sheet, under 'Notify failed logins by email to:' field at at the bottom. That DOORS user must have a valid Email specified.
  • The 'mail account' on the General tab has an unknown use and can be blank. You folks should prove this to yourselves and then clarify exactly what that is for.
  • Emails are sent from a 'DOORS Mail Server' account. Sorry for my ignorance, but I believe that is just generic and cannot receive emails. I suspect perhaps that the 'Mail Account' field on the General tab is supposed to be the Sender of these emails ('from' and 'reply to'), but is not.
  • Contrary to documentation, Emails are sent from the client machine (not the DOORS server), so port 25 must be open in the fire wall for each client attempting to use DOORS; and must not be used for other purposes.

-Louie

Re: Unable to send the email Notifications from DOORS client
kbmurphy - Tue Mar 05 12:58:48 EST 2013

llandale - Tue Mar 05 12:06:36 EST 2013
Here are my old notes on the subject; haven't confirmed them recently. IT shut something off and it no longer works on our system which is my I decided to go with the Outlook approach.

  • I’m trying to figure out exactly from where the Emails are sent; the documentation says ‘server’ but I suspect ‘client’. The ‘Sender’ is the non-existent unattended account ‘DOORS Mail Server’.
  • Port 25 must be open in the fire wall. Again, I wonder if that’s ‘Client’ or ‘Server’ and in this case I suspect ‘Client’ since its working without help from IT.
  • You configure the database with the above email and also the ‘SMTP Mail Server’, which is actually the ‘Relay’ server. For us that’s ‘relaytx001.northgrum.com’.
  • I suspect I’ll discover strange situations where email notification does not work; oh well.

Feedback submitted for tech note:
http://www-01.ibm.com/support/docview.wss?uid=swg21324459&myns=swgrat&mynp=OCSSYQBZ&mync=E

The following info is true, as best as I can tell, and if so should be included:
  • The 'SMTP Server' may also be known as the 'Relay server' on many systems.
  • Emails are sent to the DOORS user specified on the Login Policy tab of the DB properties sheet, under 'Notify failed logins by email to:' field at at the bottom. That DOORS user must have a valid Email specified.
  • The 'mail account' on the General tab has an unknown use and can be blank. You folks should prove this to yourselves and then clarify exactly what that is for.
  • Emails are sent from a 'DOORS Mail Server' account. Sorry for my ignorance, but I believe that is just generic and cannot receive emails. I suspect perhaps that the 'Mail Account' field on the General tab is supposed to be the Sender of these emails ('from' and 'reply to'), but is not.
  • Contrary to documentation, Emails are sent from the client machine (not the DOORS server), so port 25 must be open in the fire wall for each client attempting to use DOORS; and must not be used for other purposes.

-Louie

Louie--you should read up on the SMTP standard sometime. You don't need an account to send SMTP messages, especially on older systems. The "account" information is just used by DOORS to populate the headers of the email, the from: and all of that. On older, unsecured systems you can actually telnet directly to port 25 and send email as anyone. Over a decade or so ago, the white house actually used an open relay and anyone could actually send an email as billc@whitehouse.gov if you wanted.

Don't get hung up on the account stuff. The server is the important part.

Re: Unable to send the email Notifications from DOORS client
llandale - Tue Mar 05 13:44:00 EST 2013

kbmurphy - Tue Mar 05 12:58:48 EST 2013
Louie--you should read up on the SMTP standard sometime. You don't need an account to send SMTP messages, especially on older systems. The "account" information is just used by DOORS to populate the headers of the email, the from: and all of that. On older, unsecured systems you can actually telnet directly to port 25 and send email as anyone. Over a decade or so ago, the white house actually used an open relay and anyone could actually send an email as billc@whitehouse.gov if you wanted.

Don't get hung up on the account stuff. The server is the important part.

I'll take your word about SMTP, but DOORS requires a valid account to send emails through it.

-Louie

What!?? that email wasn't from Billy? I'm crushed.