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

  • 0
  • 1
  • Question
  • Updated 4 years ago
  • Answered
How to setup a smtp e-mail server with smtp authetication required in NetSight?


I can not find the option...
Photo of Shunze Lee

Shunze Lee

  • 732 Points 500 badge 2x thumb

Posted 4 years ago

  • 0
  • 1
Photo of Jason

Jason, Employee

  • 294 Points 250 badge 2x thumb
This should get you in the right direction
Our YouTube video
https://m.youtube.com/watch?v=rZ94rks...
Photo of Shunze Lee

Shunze Lee

  • 732 Points 500 badge 2x thumb
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.
Photo of Brian Anderson

Brian Anderson

  • 626 Points 500 badge 2x thumb
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. 

Photo of Shunze Lee

Shunze Lee

  • 732 Points 500 badge 2x thumb
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/
(Edited)
Photo of Drew C.

Drew C., Community Manager

  • 39,444 Points 20k badge 2x thumb
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.
Photo of Shunze Lee

Shunze Lee

  • 732 Points 500 badge 2x thumb
thanks, got it~