[SOLVED] Gmail account to send email is no longer working since May 30, 2022

Mirmanium

Active Member
Aug 14, 2020
73
11
28
45
UPDATE:
I was about to send this post thread when I found out how to solve it. I think is worthy if someone else have same problem.
You must enable 2FA in your gmail account and generate a password app. Once generated, you have to replace your old password in postfix for this new one (16 characters long).
How to do it: https://exerror.com/smtplib-smtpauthenticationerror-username-and-password-not-accepted/
Finally, to update database with new password, you must execute (mentioned in above post):
Code:
postmap hash:/etc/postfix/sasl_passwd
--

Hi,

Since announcement from Gmail to stop supporting "less secure apps" since May 30, 2022, I am getting errors related to this. I don't know how can I fix it since Postfix tutorial has not been updated for so long. I also know that using gmail for notification is not very professional but it was working fine.
I also read this recent updated post but although it was mentioned I've not found how to fix it.
Any workaround here?

Thanks,
 
Last edited:
I don't see a folder/file called sasl_passwd to edit on my proxmox server...under etc/postfix i see another folder called sasl; but it's blank...can you clarify what i need to do to fix this?
 
I don't see a folder/file called sasl_passwd to edit on my proxmox server...under etc/postfix i see another folder called sasl; but it's blank...can you clarify what i need to do to fix this?

Simply create it; for example: nano /etc/postfix/sasl_passwd.