Email POP/SMTP for email clients (Gmail)

Im sure im missing something here…

I have a domain hosted on a vps running virtualmin, say domain.com, and was wanting to setup an email account with email clients (say GMAIL, or outlook).

For convo, lets say the address is me@domain.com, i added “me” user under the domain with a password.

so i went to gmail settings -> accounts, and “add account you own”.
filled in the email address -> me@domain.com

next screen “mail settings”, filled in the username/password for user correctly (yes these are correct), filled in the POP server as mail.domain.com (port = 110), and went next. This authenticated correctly.
Next section is send emails as (and i dont want it to be an alias of the gmail address, i want it to go through the smtp).
And at this screen, i dont know what to select as the SMTP server, the port and the TSL/SSL options. Can someone help me? i tried mail.domain.com with the correct passwords, but no luck (unless its need to be set to some specific port?).

Thoughts and suggestions? Do i need to enable anything on the server to setup smtp?

Howdy,

When you used the default settings for the SMTP server, and it didn’t work, what error(s) did you receive?

-Eric

Attempt 1:
SMTP Server: smtp.domain.com
Username: me@domain.com
pass: …
port: 587
Secure Connection using TSL
Authentication failed. Please check your username/password.
[Server response: DNS Error: Domain name not found code(0) ]

Attempt 2:
SMTP Server: mail.domain.com
Username: me@domain.com
pass: …
port: 587
Secure Connection using TSL
Authentication failed. Please check your username/password.
[Server response: Remote server does not support TLS code(500) ]

Attempt 3:
SMTP Server: mail.domain.com
Username: me
pass: …
port: 587
Secure Connection using SSL
Couldn’t reach server. Please double-check the server and port number.

Attempt 4:
SMTP Server: mail.domain.com
Username: me (also same error if you use me@domain.com)
pass: …
port: 587
Secure Connection using SSL
Couldn’t reach server. Please double-check the server and port number.

Attempt 5:
SMTP Server: smtp.domain.com
Username: me (also same error if you use me@domain.com)
pass: …
port: 587
Secure Connection using SSL
Authentication failed. Please check your username/password.
[Server response: DNS Error: Domain name not found code(0) ]

Basic settings for pop worked just fine, using username me@domain.com and the password.
POP Settings that worked:
Username: me@domain.com
pass: …
POP server: mail.domain.com
port: 110

bump

Can anyone help on this?

Hey, try attempt #4 again, so mail.domain.com with SSL but use port 465. If that also fails check and make sure your firewall is allowing it.

Also, you seem to be getting a lot of DNS errors. I’d make sure that DNS is working properly on your server.

For example, if you type this command on your server:

host software.virtualmin.com

Do you get an IP address? Or does it throw an error?

-Eric