1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Error: "535 5.7.0 authentication failed"
This explains why sometimes it isn't possible to carry out authentication at the time of sending an email while the daemon is being rebooted but works a few minutes later. Try making another attempt to send the email.
If the problem continues, please check the configuration of your email account using the specific instructions for your email software.
Link to this FAQ: