NetXMS Support Forum

English Support => General Support => Topic started by: Carl Green on December 06, 2018, 12:23:28 AM

Title: SMTP Authentication
Post by: Carl Green on December 06, 2018, 12:23:28 AM
Is there any plans to support SMTP Authentication?
TLS over 587 for example.
Title: Re: SMTP Authentication
Post by: Alex Kirhenshtein on December 06, 2018, 01:21:16 AM
Not at the moment - there are multiple ways to configure is using existing tools:
* on most UNIXes you can use existing MTA (Postfix, Exim, Sendmail, e.t.c.) to use smarthost over TLS.
* For Windows there is http://emailrelay.sourceforge.net/ (I recommend version 1.9)
Title: Re: SMTP Authentication
Post by: Carl Green on December 06, 2018, 10:16:15 AM
thanks will check it out.
Title: Re: SMTP Authentication
Post by: Staj on January 22, 2019, 12:17:54 PM
Some easy instructions for running EmailRelay 2.0.0 (https://sourceforge.net/projects/emailrelay/files/emailrelay/2.0/) on 127.0.0.1:25 on Windows with an upstream SMTPS server.

1) Extract emailrelay-2.0-w64 into C:\NetXMS\emailrelay on the same system as the NetXMS server, change paths to suit your own environment
2) Create spool directory: C:\NetXMS\emailrelay\spool
3) Create config directory: C:\NetXMS\emailrelay\config
4) Place a Trusted CA Certificate bundle into C:\NetXMS\emailrelay\config\cacert.pem (Eg: From Mozilla or curl (https://curl.haxx.se/docs/caextract.html) for public CAs or you'll need to make your own if your SMTPS server uses certificates signed by an internal CA)

5) Create C:\NetXMS\emailrelay\config\email.auth and put in any relevant authentication (http://emailrelay.sourceforge.net/index.html#reference_md_Authentication)
Example: client plain [email protected] PasswordHere


6) Create batch file to start emailrelay.exe (http://emailrelay.sourceforge.net/index.html#reference_md_Reference): C:\NetXMS\emailrelay\start-emailrelay.bat
start "emailrelay" "C:\NetXMS\emailrelay\emailrelay.exe" --interface=127.0.0.1 --interface=127.0.0.1 --port=25 --as-proxy=smtp.example.com:465 --client-auth=C:\NetXMS\emailrelay\config\email.auth --client-tls-connection --client-tls-required  --client-tls-server-name=smtp.example.com --client-tls-verify=C:\NetXMS\emailrelay\config\cacert.pem --spool-dir=C:\NetXMS\emailrelay\spool --pid-file=C:\NetXMS\emailrelay\emailrelay.pid --no-syslog
Change smtp.example.com to your desired SMTPS server.

7) Create C:\NetXMS\emailrelay\emailrelay-service.cfg
dir-config="C:\NetXMS\emailrelay\config"

8 ) Run as Administrator to install service (http://emailrelay.sourceforge.net/#windows_md_Running_as_a_service):
C:\NetXMS\emailrelay\emailrelay-service --install

Remember to document the existence of the cacert.pem bundle and the need to manually update it.
Title: Re: SMTP Authentication
Post by: Filipp Sudanov on May 22, 2023, 05:54:18 PM
SMTP Authentication was added in 4.3, please see updated documentation: https://www.netxms.org/documentation/adminguide/event-processing.html#notification-channels