How to setup a smtp e-mail server with smtp authetication required in NetSight?


Userlevel 1
How to setup a smtp e-mail server with smtp authetication required in NetSight?



I can not find the option...

7 replies

This should get you in the right direction Our YouTube video https://m.youtube.com/watch?v=rZ94rksCRmQ
Userlevel 1
No, that is not what I need.

I mean my mail server need to authentication before sending a email.
But NetSight doesn't support this function,
so it got error when sending tes.

Userlevel 2
Might try this:
add this to NSJBoss.properties file:



mail.smtp.port=465

mail.smtp.socketFactory.port=465

mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory

mail.smtp.socketFactory.fallback=false

mail.smtp.starttls.enable=true

restart services after changes.
Userlevel 1
It works with gmail.

First add the following line to /usr/local/Extreme_Networks/NetSight/appdata/NSJBoss.properties
mail.smtp.port=587
mail.smpt.auth=true
mail.smtp.starttls.enable=true



Then login gmail account, disable to 2-step verification, and enable "Access for less secure apps"

Modify the NetSight E-Mail Server Option.



Test the mail setting.



It works~

Reference URL,
http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/
Userlevel 7
Shunze Lee wrote:

It works with gmail.

First add the following line to /usr/local/Extreme_Networks/NetSight/appdata/NSJBoss.properties
mail.smtp.port=587
mail.smpt.auth=true
mail.smtp.starttls.enable=true



Then login gmail account, disable to 2-step verification, and enable "Access for less secure apps"

Modify the NetSight E-Mail Server Option.



Test the mail setting.



It works~

Reference URL,
http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/

Hi Shunzie, thanks for the update on this one!
I just wanted to note that you shouldn't have to disable 2-step authentication with Gmail if you use an application specific password.
Userlevel 1
Shunze Lee wrote:

It works with gmail.

First add the following line to /usr/local/Extreme_Networks/NetSight/appdata/NSJBoss.properties
mail.smtp.port=587
mail.smpt.auth=true
mail.smtp.starttls.enable=true



Then login gmail account, disable to 2-step verification, and enable "Access for less secure apps"

Modify the NetSight E-Mail Server Option.



Test the mail setting.



It works~

Reference URL,
http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/

thanks, got it~
Userlevel 4
Hi Guys,

My NetSight refuses to send e-mail, and show no verbose debug info...

All steps were made previously, and it worked well until 6.3, but now with the Early Access to 7.0 is not working:

2016-04-20 12:16:30,386 ERROR [com.enterasys.netsight.server.notification.NotifyEmailSender] Unable to send E-Mail. Exception reading response

Any idea?

Best regards

Reply