So I configured my outgoing mail configuration according to my Gmail settings. I enabled IMAP also. I put correct username and password.
So when I do test email to my administrative account email, I get the test mail but when I put some other email address (which is working), the test email shows unable to connect to SMTP server. I don't understand.