Copy and paste your password to ensure it is correct.
Most problems are due to incorrect settings.
Here are some online instructions for both Windows and Mac.
How to troubleshoot Outlook when you cannot send or receive e-mail
OS X Mail: Troubleshooting sending and receiving email messages
If you are using the secure settings, port 587 may work instead of port 465.
Mac Mail Tutorial
https://www.siteground.com/tutorials/email/mac-mail.htm
Apple Mac Mail issues
https://support.tigertech.net/mac-mail-manual
Note: Multiple login attempts with incorrect credentials will block your IP address. If your connection to the internet uses a dynamic IP address then you can resolve this issue by restarting (powercycling) your internet modem router.
IP blocking error by Telstra users
Try the following solutions.
https://crowdsupport.telstra.com.au/t5/Modems-Hardware/Blocking-
devices-from-my-wifi-modem/td-p/242019