While SMTP using my Google account was working it seems it stopped working again. My logs are full of "535 Incorrect authentication data" errors. I have turned off SMTP so that phpBB would use the PHP mail function instead and some mail gets delivered, and some doesn't. No errors are being logged.