Closed bravery-only closed 1 year ago
I Enabled SMTP and this page is shown when I login. I do not receive an email for confirmation,. Help me @Ylianst
Are you connecting to your own personal server or using a provider? (365, google)
own personal server
personal server
I use Windows Server
Sorry i meant for your SMTP.
Are you connecting to a hosted service such as Gmail or Outlook or are you hosting your own email server?
Can you send a copy of your SMTP settings (Hide anything personal)
"smtp": { "host": "smtp.gmail.com", "port": 465, "from": "my email@gmail.com", "user": "my email@gmail.com", "pass": "xxxxxxxxxxxxxxxxxxxxxxx", "_verifyEmail": false, "tls": true },
The interesting thing is that when I add this code, after restarting Mesh Central, this code ( "verifyEmail": false,)is deleted!! I also tested with port 587 and it didn't work.
Gmail requires OAuth to send email through their SMTP servers. I can't recall if Ylian has built in any functionality to support that? Edit: see this discussion for what you will need to do. https://github.com/Ylianst/MeshCentral/issues/3744
You can use App Passwords with gmail which circumvents the need for Oauth.
Look at the below link to generate a App password.
or
I got App Passwords . Do you have a sample syntax for this?
I activated the email, but when the agent is Coneccted & Disconnected, the notification is received very late. Or email is not received!
It takes 5 minutes to receive the email. How to change its time? Which file should I edit?
Thats odd. Meshcentral sends the email immediately.
@Ylianst any chance the server keeps trying to send an email or does it push to smtp once then quit?
If so then gmail is the likely culprit here. Can you paste the message header in here from the email you recieved? Gmail can be very picky about emails and what they class as junk etc. The message header typically holds enough logs to verify if thats the issur.
When I send an email from here, it is received immediately.
But when connecting and disconnecting the agent, it takes time - 4-5 minutes!!!
I saw the video of the email server. Here, the time to send the email when the device is connected is said to be 5 minutes. Then it can be said to be one minute. Where can I set this time? Thank you @Ylianst
In the training video, you talk about starting the timer. The timer is on 5 minutes. How can I reduce the timer time? Which file should I edit?@Ylianst
After a few hours I was able to find the timer and changed the email receiving time to 6 seconds
After a few hours I was able to find the timer and changed the email receiving time to 6 seconds
Where did you find this at? I've been looking everywhere.
Where did you find this at? I've been looking everywhere.
Well start with the video https://youtu.be/-L0-xjbWZJI?t=881
You know there's a help command emailnotifications
to show you the notification queue, so look for that.
You'll see it's calling deviceNotifications
Looks like it's in meshmail.js
Trying to match this online with my local vscode copy (all the above searching is done locally in vscode because github search sucks)
and while I'm trying to find the code online to send a link
https://github.com/Ylianst/MeshCentral/blob/master/meshmail.js#L29
Looks like there's a recent change to the file...look at what Santa is bringing you for Christmas
https://github.com/Ylianst/MeshCentral/commit/7002ce1ea29e1bcc30321deacba0941c186d55d8
Meshcentral
My Server
How can I activate the email notification?