My testmail kept returning boolean(false. I tried every possible combination of ports and authentication methods but nothing worked.
I read somewhere that you might need to fill the captcha at gmail to get past the block, but I never got a request to solve a captcha from Google / Gmail.
What I did get was an email saying there was a suspicious sign in attempt:
If this was you, and you are having trouble accessing your account, complete the troubleshooting steps listed at http://support.google.com/mail?p=client_login
In that help page is the following:
If you're still having problems, visit http://www.google.com/accounts/DisplayUnlockCaptcha and sign in with your Gmail username and password. If necessary, enter the letters in the distorted picture.
I did not get a captcha, but following through that link solved my troubles. Maybe some others can benefit from this.