На тестовые ящики все хорошо отправляет, на gmail не хочет:
Вот логи:
2023-03-27 13:35:21 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP r10-20020a19ac4a000000b004b5979f9ba8sm4675444lfc.210 - gsmtp
2023-03-27 13:35:21 CLIENT -> SERVER: EHLO epoxidboden
2023-03-27 13:35:21 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [91.219.223.195]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2023-03-27 13:35:21 CLIENT -> SERVER: STARTTLS
2023-03-27 13:35:21 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2023-03-27 13:35:21 CLIENT -> SERVER: EHLO epoxidboden
2023-03-27 13:35:21 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [91.219.223.195]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2023-03-27 13:35:21 CLIENT -> SERVER: AUTH LOGIN
2023-03-27 13:35:21 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2023-03-27 13:35:21 CLIENT -> SERVER: [credentials hidden]
2023-03-27 13:35:21 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2023-03-27 13:35:21 CLIENT -> SERVER: [credentials hidden]
2023-03-27 13:35:21 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials r10-20020a19ac4a000000b004b5979f9ba8sm4675444lfc.210 - gsmtp
2023-03-27 13:35:21 SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials r10-20020a19ac4a000000b004b5979f9ba8sm4675444lfc.210 - gsmtp
SMTP Error: Could not authenticate.
2023-03-27 13:35:21 CLIENT -> SERVER: QUIT
2023-03-27 13:35:21 SERVER -> CLIENT: 221 2.0.0 closing connection r10-20020a19ac4a000000b004b5979f9ba8sm4675444lfc.210 - gsmtp
SMTP Error: Could not authenticate.
bool(false)