vADC Forum

Reply
Highlighted
New Member
Posts: 1
Registered: ‎08-10-2017

How to configure SMTP authentication on vTM 17.3?

I'm trying to configure a new Alerting Actions of Type E-Mail.

Under the SMTP Server:, I don't see an option to configure authentication.

Neither I find any reference in the Brocade Virtual Traffic Manager: User's Guide, v17.3

 

How can I use a SMTP server without passing authentication? We don't have this option, in order to use company's SMTP server, we need to pass authentication, unless there's a way to leverage Brocade's.

Brocadian
Posts: 23
Registered: ‎05-22-2015

Re: How to configure SMTP authentication on vTM 17.3?

Hi Mauroj,

 

Unfortunately you can't setup authentication on SMTP alerts at present. There is an open feature request for this though. I would suggest that you open a ticket with support and make your requirement known so that the RFE can be updated by the team.

 

As a work around you can add this python script to Action Programs and set you events to fire through this instead. Obviously change the variables to match your environment.

 

#!/usr/bin/python

import sys
import smtplib

###################################################
# email from address/login account and password
eFrom = "mboddington@pulsesecure.nospam"
ePass = "topSecretPassWord"

# Mail server to use and port
eSMTP = "smtp.office365.com"
ePort = 587

# Destination address and subject
eRcpt = "mark@somewhere.else.uk"
eSubj = "Alert: " + str(sys.argv[0])
###################################################

msg =  "From: " + eFrom + "\r\n"
msg += "To: " + eRcpt + "\r\n"
msg += "Subject: " + eSubj + "\r\n\r\n"
msg += "Alert: " + str(sys.argv) + "\r\n"

server = smtplib.SMTP(eSMTP, ePort)
server.starttls()
server.login(eFrom, ePass)
server.sendmail(eFrom, eRcpt, msg)
server.quit()

 

Cheers,

Mark

 

 

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.

Click to Register
Download FREE NVMe eBook