Mitch_Denis_38

Setting up a "non-standard" SMTP Server (like gmail) for AE Notifications

Discussion created by Mitch_Denis_38 on Jan 31, 2017
Latest reply on Jan 31, 2017 by brendan_sapience_automic
We've had customer in the past ask about how to set up AE Notifications to use SMTP ports other than port 25 and there have been a few discussions on our Community on how to do this as well.  Out of the box, One Automation does not allow for a different port to be used and we'd recommend requesting this be added via ideas.automic.com.  

That said, one of our Professional Services gurus came up with a great workaround for this that can be used as an example to build off.  Please note that this is not a truly supported configuration, but an example to use.  Feel free to share how you've done similar setups! This example will use gmail.

Scope

AE v12.0 and before (and possible after). Notifications from AE via SMTP (Settings in UC_CLIENT_SETTINGS)


Summary

AE cannot be configured to use a SMTP Port other than 25, it also doesnt seem to take too kindly of SMTP servers that require SSL / Authentication. Out of the box, this makes it impossible to configure AE to send emails to anything but basic SMTP servers (no Gmail, etc.).

This article proposes a workaround by using a Email Server Relay between AE and any other SMTP server.

The example given here is with gmail's SMTP servers.

 

What you need

  • A windows box / server (Windows 7, Windows Server 2008, 2012, 2014, etc.)
  • hmailserver (https://www.hmailserver.com/) (only compatible with Windows)

 

Procedure

1- Install hmailserver on your server (very simple install procedure)

2- Open the Admin Console of hmailserver

3- Create a new Domain (ex: Automic.int)

dpwgburrd4zc.jpg

4- Create an Account under your new Domain (ex: notification@automic.int)

zj47wkhrd74n.jpg

5- (optional) activate logging (just in case, to make sure it works..)

6paz2sghdum0.jpg

6- configure Relay (Under Protocols -> SMTP - > Delivery of email

(local hostname: adr on which the hmailserver listens for incoming messages. localhost is fine if installed on the same server as AE)

-> this is where you specify the connection parameters to your "complex" SMTP server (Ex: Gmail)

56n0y4mxz6e7.jpg

7- configure your UC_CLIENT_SETTINGS accordingly:

SMTP_SERVER: Same address as specified in hmailserver

SMTP_FROM_ADDR: same address as the account created above

rgidnt1eql5q.jpg

8- Test it: here is a screenshot of the notification coming from gmail:

pji8dv9y8vnr.jpg

Final Notes:

Ideally, we should be able to do this on Linux / Unix as well, but have not found an alternative to hmailserver at this time.  If someone knows of one, please share!

A big shoutout to brendan_sapience_automic and peter_grundler_automic for the content on this!

Attachments

Outcomes