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):
--
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,
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: