How to read an SMTP reply
When an SMTP server rejects something, it replies with a three-digit code, an enhanced status code and a text. For example: 535 5.7.8 Error: authentication failed.
The first digit gives the type of reply: 2 means everything went fine, 4 is a temporary error (you can try again later) and 5 is a permanent error (repeating the send won't fix it: something has to change). The enhanced code (RFC 3463) and the text pin down the reason, and they're usually the most useful part for diagnosis.
Short answer
Find the full reply in your plugin's or application's log. A 535 means a wrong username or password; a 554 means the server won't accept the send (no authentication, a sender that isn't on your verified domain or a restriction on the account); a 530 or a handshake failure means the wrong port and encryption pair; and a 451 is a temporary limit.
