# Problem using SagMailGateway

**URL:** <https://techcommunity.softwareag.com/t/problem-using-sagmailgateway/58452>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Service-Orchestrator\
**Created:** [February 28, 2003, 10:35pm UTC](https://techcommunity.softwareag.com/t/problem-using-sagmailgateway/58452 "2003-02-28T22:35:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [February 28, 2003, 10:35pm UTC](https://techcommunity.softwareag.com/t/problem-using-sagmailgateway/58452/1 "2003-02-28T22:35:13Z")

</div>

I have setup a simple sequence in which I want to make use of the SagMailGateway to send an email response. When i run the sequence I get the following error in the DefaultComponentFactory.xbd.log  
  
2003-02-28 11:46:02,666 Thread-2 ERROR xbd - SagMailGateway - sendMessage: MessagingException: Could not connect to SMTP host: usmsg06, port: 25  
javax.mail.MessagingException: Could not connect to SMTP host: usmsg06, port: 25  
  
the error is quite clear and obvious, yet I don’t know how to resolve the issue. Do I need to configure any additional components on my machine to get the Mail Gateway to work? I have looked through the documentation but didn’t find any additional information.   
  
Regards  
Theo

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [March 1, 2003, 1:32am UTC](https://techcommunity.softwareag.com/t/problem-using-sagmailgateway/58452/2 "2003-03-01T01:32:53Z")

</div>

I have found a workaround for the problem. I downloaded and installed a mail server on my machine. In this instance I used a mail server called ShareMailPro and I also did a test using Apache’s James mail server. If I install and configure a local mail server on port 25, then everything works 100%. I can monitor the messages as the flow through my mail server (which means the SagMailGateway) works well.   
  
I still don’t understand why I cannot connect to our regular network mail server? I will hunt for the solution, but if anyone has some ideas please feel free to share them with me.  
  
Regards  
Theo

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [March 3, 2003, 2:33pm UTC](https://techcommunity.softwareag.com/t/problem-using-sagmailgateway/58452/3 "2003-03-03T14:33:09Z")

</div>

Hi Theo,  
  
this might be a security issue.  
I’m getting an “access denied” error when I contact this host directly (which is okay for me because I don’t have an account on this machine).  
  
Kind regards,  
Rolf

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/problem-using-sagmailgateway/58452/4 "2021-04-02T14:39:15Z")

</div>

Closed on April 2, 2021, 2:39pm UTC


