Email Notifications Driver using Node/sendmail on a PI

pi might have permission - it can be tested from the command line.

1 Like

Well, I changed it to "root" and got the same error.

1 Like

I am at a loss. There's no error in the 16 character code is there?

1 Like

Question: Should I leave the 2 factor identification on? Or, should I turn it off, once i GENERATED THE APP PASSWORD?

Yes, leave it on.

This is the way it's displayed by Google:
image

1 Like

Yeah, once the password is created, it will not be displayed again.

When you entered the app password, had you kept the spaces? If so, remove them and re-create /etc/mail/authinfo/gmail-auth.db, and restart sendmail.

If that doesn't work, delete that app password, create a new one and try it again. I saved a copy of the app password elsewhere - just in case I made an error in copying it.

Indeed.
I didn't use the spaces. (It's exactly 16 characters).
I created a new one:

Unfortunately, the same result.

I am at a loss.

Can you check the contents of:
/var/lib/sendmail/dead.letter

Do the failed sending attempts have the following error associated with them?

Final-Recipient: RFC822; user@host.domain
Action: failed
Status: 5.7.0
Diagnostic-Code: SMTP; 530-5.7.0 Authentication Required. Learn more at
Last-Attempt-Date: Tue, 7 Jun 2022 15:32:26 -0500

I don't seem to have anything in that file.

Here is the output from the echo:

It might be /home/pi/dead.letter, but there should be a dead.letter file saved from the failed attempts.

Size of 0:
image

1 Like

bummer

1 Like

Ok - the error you are getting is not the same error if it was an authentication error. I re-created an authentication error or purpose. So we have to track down what a 454 error is to fix the issue you are facing.

This might be issue you're facing:

https://support.google.com/mail/thread/128747905/454-4-7-0-too-many-login-attempts-please-try-again-later?hl=en

Is your Google account a Google Workspace account?

No. Just a regular Google account. I use a throwaway account for my "home".

Well, it took me some time, but I think I finally got it!

It appears that Google is having a hard time with user names that have special characters in it.
The user name that I was using was "mail. @gmail.com".
I went back and created a new google account that did not have the ".",
and voila: no problem.

To be perfectly frank, I expected more from Google.

My throwaway username has a “.” in it :joy:

Then, I'm not sure why my original, "throw away" gmail account wouldn't work, and this new one does!

One of those things that will always be a mystery!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.