genmon
genmon copied to clipboard
Google Gmail Less Secure Apps Access Going Away 5/30/2022
Any chance there will be a Genmon workaround to still be able to easily use a gmail address for notifications? As soon as I turn off the less secure apps setiing Genmon can no longer send me notifications via my Gmail account. Gmail being one of the most popular out there, I thought I'd ask. Thanks!
"To help keep your account secure, starting May 30, 2022, Google will no longer support the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password."
https://support.google.com/accounts/answer/6010255?rfn=1646361360139&anexp=nret-fa&pli=1
I got an email on that this morning as well. I will put this on the priority list to add Oauth support.
After reviewing this issue, the thing to do is to enable 2 factor authentication (2FA) for your google account, then use an "App Password":
https://support.google.com/accounts/answer/185833?hl=en
An App Password is a password generated by google (Microsoft and Apple has the same options) than can be used by applications like genmon that does not support Oauth or 2FA.
The problem with using Oauth for authentication in genmon is that it requires a secure client ID and google does not recommend storing a secure client ID in open source software. There are other ways for the user to generate keys and use the GMail API instead of SMTP and an app password, but those are much more complicated for the end users than just using two factors authentication and an app password (it involves using the google developer console and is not a very straight froward process).
This is something that everyone using gmail with genmon will need to address by May 30, 2022.
FYI, this thread has instruction on enabling App Passwords for gmail
https://www.reddit.com/r/GMail/comments/t6hhfj/you_may_lose_access_to_some_of_your_thirdparty/
I am using this now on my production and test system and can validate it works well.
I just saw this. This is exactly what I do and is easy and works. I have a single gmail account for all of my little IOT projects and use the same account just different App Password. Also provides a history of when the device last accessed the account. Works like a charm.
hmmm, i set up 2 factor authorization on my gmail accounts, and my computer is able to send test messages on all accounts. however last Wednesday my generator exercised but i received no messages on email.
you may want to check your /var/log/mymail.log file for any errors in that time period.
I just re-entered verification password, and now it sent test email. So i guess i just mis typed it originally. Seems all good now.
I have had repeated issues with similar failures to send actual notifications via email but Genmon test emails work fine. The only solution I have found thus far is a reboot of the pi. Now I do it every 2 weeks when I check the oil. It started several weeks after I enabled the gmail 2 FA and App Password.
your /var/log/mymail.log file should have specific errors.
Just a guess, if your pi is using DHCP and your router may of been restarted then it is possible that your router is blocking any access from the pi if it is using an IP that is has not been allocated by the router since it's reboot.
I enabled 2 FA and App password. When I "Test Email Settings" from the Genmon settings page, the email goes through, however I no longer receive any notifications from Genmon. Any help will be greatly appreciated. I submitted logs, not sure if they are of any value for this situation.
I enabled 2 FA and App password. When I "Test Email Settings" from the Genmon settings page, the email goes through, however I no longer receive any notifications from Genmon. Any help will be greatly appreciated. I submitted logs, not sure if they are of any value for this situation.
Did you change password in genmon to match the new secure password
Yes, I did change the password in genmon.
Hmm, i changed my password under settings, then entered save. Unit updated. I then turned off my generator. I was sent an alert, so all seems ok. Today at 2 pm i have a scheduled exercise…well see what happens. I only reset mine last week.
That's pretty much what I did, but when I turned off the generator I did not get a notification.
If you update your email password on the settings page and click test, it will test the new password, however if you do not click the save button at the bottom of the settings page then genmon will not start using the new password.
in about 35 minutes ill see if my changes worked. if they didnt, im going to set up a yahoo account and bypass google altogether
I did click the save button at the bottom of the settings page.
well, its 2pm, and i just got an email and a text telling me generator has started exercise. so i guess its worked for me.
@RoyRomeo I have not received any logs. Log sent form the About page are sent via email so if you email is not working I will not get your logs.
The first thing I would suggest is that you try validating all of your information you have for your email settings. If you log into your pi you can view your settings in this file: /etc/genmon/mymail.conf
If your password in this file does not match your account password it will not work.
To view your logs you can log into your pi via ssh and type this command to view the log:
cat /var/log/mymail.log
You can copy and paste the log data to this thread.
Or, for another way to get your logs to me, you can issue this command in a browser to download all the logs to your computer.
https://192.168.1.10:8000/cmd/get_logs
NOTE: change the pi address in the above command to match the IP address of your pi. This will download your log files in a compressed archive file named genmon_logs.tar.gz. You can attach this file to this thread on the github web site. If you try to send it as an email attachment it will get stripped off by github.
@jgyates When I log into my pi, I'm in the genpi directory. When I type in file: /etc/genmon/mymail.conf, I get command file not found.
Use cat /etc/genmon/mymail.conf
to have it print the file content.
This is not a command it is a file path. To view the file type this command followed by the file path:
cat /etc/genmon/mymail.conf
@jgyates The app password is listed correctly.
@jgyates
[MyMail]
optionally disable email use by the program. set to true to disable all email functionality
disableemail = false
optionally disable receiving mail
disableimap = true
optionally disable sending mail
disablesmtp = false
The password for the email account used for sending and receiving email
email_pw = xxxxxxxxxx
the email account
email_account = [email protected]
address that email are sent to
email_recipient = [email protected],[email protected]
the email from which the emails are sent (sender email address)
sender_account = [email protected]
optional, name of the sender, i.e. Genmon or John Doe
sender_name = Joe's Generator
the SMTP mail server used for sending email, leave empty to disable SMTP, i.e. "smtp_server ="
smtp_server = smtp.gmail.com
the IMAP server address used for receiving email, leave empty to disable IMAP, i.e. "imap_server ="
imap_server = imap.gmail.com
the SMTP port used on the SMTP server for sending email
Note about ports and email security: typically port 587 is used for
TLS and port 465 is used for SSL
smtp_port =
use SSL encryption to send emails
ssl_enabled = false
do not use TLS encryption if true, the default value is false (use TLS).
This is parameter ignored if ssl_enable is true. Enabling this and disabling
SSL encryption will result in no SMTP encryption.
tls_disable = false
use BCC instead of To for sending mail
usebcc = False smtpauth_disable = false pi@genpi [~] cat /var/log/mymail.log 2022-06-22 10:01:37,133 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:05:48,013 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:05:48,015 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:09:58,893 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:09:58,894 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:14:09,775 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:14:09,779 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:18:20,653 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:18:20,654 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:22:31,533 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:22:31,534 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:26:42,413 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:26:42,414 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:30:53,293 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:30:53,294 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:35:04,173 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:35:04,175 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:39:15,055 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:39:15,056 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:43:25,933 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:43:25,934 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:47:36,813 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:47:36,813 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:51:47,693 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:51:47,694 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 10:55:58,572 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 10:55:58,573 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:00:09,453 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:00:09,454 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:04:20,332 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:04:20,333 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:08:31,213 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:08:31,214 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:12:42,093 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:12:42,094 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:16:52,973 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:16:52,974 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:21:03,853 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:21:03,854 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:25:14,733 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:25:14,733 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:29:25,613 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:29:25,614 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:33:36,493 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:33:36,494 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:37:47,373 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:37:47,374 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:41:58,252 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:41:58,253 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:46:09,132 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:46:09,133 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:50:20,013 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:50:20,014 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:54:30,895 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:54:30,896 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 11:58:41,773 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 11:58:41,774 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:02:52,653 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:02:52,653 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:07:03,533 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:07:03,534 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:11:14,413 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:11:14,414 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:15:25,293 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:15:25,294 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:19:36,173 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:19:36,174 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:23:47,053 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:23:47,054 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:27:57,933 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:27:57,934 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:32:13,933 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:32:13,934 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:36:24,813 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:36:24,814 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:40:35,693 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:40:35,694 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:42:39,053 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:42:39,054 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:45:14,653 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:45:14,654 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:49:28,173 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:49:28,174 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:53:39,053 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:53:39,054 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 12:57:49,933 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 12:57:49,934 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:00:25,373 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:00:25,374 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:03:00,893 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:03:00,894 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:05:19,783 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:05:19,784 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:09:31,373 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:09:31,374 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:13:42,256 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:13:42,259 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:17:53,132 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:17:53,133 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:20:11,933 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:20:11,934 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:22:31,955 : Error SMTP Init : SSL:<False>: [Errno -3] Temporary failure in name resolution : mymail.py:501 2022-06-22 13:22:31,956 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:24:51,978 : Error SMTP Init : SSL:<False>: [Errno -3] Temporary failure in name resolution : mymail.py:501 2022-06-22 13:24:51,979 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:29:03,853 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:29:03,854 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:33:14,733 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:33:14,734 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:35:33,533 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:35:33,533 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:37:53,553 : Error SMTP Init : SSL:<False>: [Errno -3] Temporary failure in name resolution : mymail.py:501 2022-06-22 13:37:53,554 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:42:12,333 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:42:12,334 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:46:23,213 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:46:23,214 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:50:34,093 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:50:34,093 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:54:44,973 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:54:44,974 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 13:58:55,853 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 13:58:55,854 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:03:06,733 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:03:06,734 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:07:17,613 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:07:17,614 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:11:28,493 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:11:28,493 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:15:39,373 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:15:39,374 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:19:50,253 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:19:50,254 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:24:01,133 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:24:01,134 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:28:12,013 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:28:12,014 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:32:22,893 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:32:22,894 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:36:33,773 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:36:33,774 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:40:49,773 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:40:49,774 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:45:00,653 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:45:00,654 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:49:11,533 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:49:11,533 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:53:22,413 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:53:22,414 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 14:57:33,293 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 14:57:33,294 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:01:44,173 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:01:44,174 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:05:55,064 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:05:55,065 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:10:05,933 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:10:05,933 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:14:16,813 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:14:16,814 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:18:27,693 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:18:27,694 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:22:38,577 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:22:38,578 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:26:49,453 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:26:49,454 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:31:00,332 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:31:00,333 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:35:11,213 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:35:11,214 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:39:22,092 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:39:22,093 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:43:32,973 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:43:32,974 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:47:43,854 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:47:43,854 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:51:54,733 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:51:54,733 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 15:56:05,612 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 15:56:05,613 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:00:16,493 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:00:16,494 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:04:27,373 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:04:27,374 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:08:38,253 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:08:38,254 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:12:49,133 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:12:49,134 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:17:00,013 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:17:00,014 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:21:10,893 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:21:10,894 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:25:21,773 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:25:21,774 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:29:32,652 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:29:32,653 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:33:43,533 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:33:43,534 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:37:54,413 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:37:54,414 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:42:05,293 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:42:05,294 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:46:16,173 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:46:16,174 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:50:27,053 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:50:27,054 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:54:37,933 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:54:37,934 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 16:58:48,813 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 16:58:48,814 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:02:59,693 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:02:59,694 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:07:10,573 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:07:10,574 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:11:21,453 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:11:21,454 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:15:32,333 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:15:32,334 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:19:43,213 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:19:43,214 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:23:54,093 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:23:54,094 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:28:04,973 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:28:04,974 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:32:15,853 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:32:15,854 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:36:26,733 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:36:26,734 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:40:37,612 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:40:37,613 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:44:48,493 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:44:48,494 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:48:59,373 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:48:59,374 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:53:10,253 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:53:10,254 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 17:57:21,133 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 17:57:21,134 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:01:32,013 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:01:32,014 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:05:42,893 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:05:42,894 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:09:53,773 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:09:53,774 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:14:04,653 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:14:04,654 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:18:15,533 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:18:15,534 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:22:26,413 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:22:26,414 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:26:37,293 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:26:37,294 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:30:48,172 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:30:48,173 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:34:59,053 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:34:59,054 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:39:09,932 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:39:09,933 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:43:20,813 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:43:20,814 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:47:31,703 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:47:31,703 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:51:42,573 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:51:42,574 : Error in SendMailThread, sendEmailDirectMIME failed, retrying 2022-06-22 18:55:53,453 : Error SMTP Init : SSL:<False>: [Errno 101] Network is unreachable : mymail.py:501 2022-06-22 18:55:53,454 : Error in SendMailThread, sendEmailDirectMIME failed, retrying pi@g
@RoyRomeo
you smtp port is blank. It should be 587 for gmail.
if that does not work, then reboot your pi. You appear to be having network issues with your pi, but that could be due to the port being unspecified.
I edited the above to remove your email password. You posted the contents of /etc/genmon/mymail.conf and you did not remove your password. You may consider changing your password as this thread gets emailed out to a lot of people. It is just an app specific password so it is probably only good for reading and sending email on that account.
@jgyates
I had 587 in the smtp server port. I changed it to 465 and switched on "Use SSL Encryption" and now it appears to work. Does that make sense?
@jgyates
I changed smtp server port to 587, switched off "Use SSL Encryption" and it does appear to be working.
Thanks very much for your help.
No problem. I am glad it is working.