Skip to content

Unable to send emails from gmail #1034

@rodrigoscatarino

Description

@rodrigoscatarino

Hi everyone,

From a couple of months ago, i am unable to send emails, the reason seen on the log is
"ERROR:E-Mail - Error sending E-mail notification - (535, b'5.7.8 Username and Password not accepted. For more information, go to\n5.7.8 https://support.google.com/mail/?p=BadCredentials"

I've checked the credentials, they are correct, i even created a new email to dedicate to this, with no 2FA or other security settings.
Still cannot send any emails.

This is my config file from the email notigications: (I've removed the email and password)

#######################

EMAIL NOTIFICATIONS

#######################

Sends an email notification to the specified address when a new Sonde is detected

[email]
email_enabled = True

Send an e-mail for each new radiosonde observed.

launch_notifications = True

Send e-mails when a radiosonde is detected descending near your station location

landing_notifications = True

Range threshold for Landing notifications (km from your station location)

landing_range_threshold = 30

Altitude threshold for Landing Notifications (metres)

Notifications will only occur for sondes which have been observed descending (>2m/s descent rate) below this altitude

for at least 10 observations

landing_altitude_threshold = 1000

Enable sending critical error notifications (one that cause auto_rx to completely crash out) via email.

WARNING: If an error is persistent and you are running as a systemd service, this could result

in many e-mails being sent!

error_notifications = True

Server details. Note that usually Port 465 is used for SSL auth, and 587 is used for TLS.

smtp_server = smtp.gmail.com
smtp_port = 465

Authentication type, Valid options are: None, TLS, and SSL

smtp_authentication = SSL

If using authentication, the following fields need to be populated:

smtp_login = xxxx...@gmail.com
smtp_password = xxxxxxxxxxx

'Source' e-mail

from = xxxx...@gmail.com

Destination emails. You can send to multiple addresses by separating each address with a semicolon,

i.e. te...@test.com;te...@test2.com

to = xxx...@gmail.com

I've changed the snmp port to 587 and the auth to TLS. Will wait to see if it works.
Is there a way to trigger a test email using those settings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions