under google security, make sure two factor authentication is turned on, then you are able to create a app password, for smtp:

see also:
https://www.golinuxcloud.com/gmail-smtp-relay-server-postfix/

computer2know :: thank you for your visit :: have a nice day :: © 2024