MX Records Setup

10 posts / 0 new
Last post
#1 Tue, 06/18/2013 - 04:03
anthonyinit2012

MX Records Setup

Hi there, I purchase a new domain from go daddy now i went to my virtualmin and created a new virtual server, everything looks fine except for my email. when i use usermin everything is fine but i want to use outlook to send and receive my email.

try to setup outlook but i get error

"Outlook cannot find the server. Verify the server information is entered correctly in the Account Settings, and that your DNS settings in the Network pane of System Preferences are correct." "Error code 3176"

Please help me

Tue, 06/18/2013 - 04:09
Locutus

Usermin accesses the local IMAP/SMTP directly, so it can be expected that that works. :)

To evaluate this problem, and not list 100 possible reasons by guessing, you should post the actual domain names in question, so I can do some digging (literally).

Tue, 06/18/2013 - 05:03
Locutus

I did some tests and can't find any immediate problems. The DNS zone is okay, and I can connect to SMTP and IMAP on the IP address 79.143.191.179.

One discrepancy with regular Virtualmin behavior I found is that VM usually uses the hostname "mail.DOMAIN" for the MX record and creates an appropriate A record ("mail.DOMAIN" pointing to your IP). In your case, the MX points to the DOMAIN itself. Which of course works, but would suggest that you either changed Virtualmin's config, or did some manual things there.

So, my guess is that there's either some intermediate DNS or connection problem on the client end, or you did some misconfiguration with Outlook. Can you take screenshots please of the Outlook configuration dialogs?

Mon, 08/26/2013 - 18:26
anthonyinit2012

i'm sorry i know there is something wrong and i need your help please :)

http://i39.tinypic.com/33y3muh.jpg

http://i44.tinypic.com/xqga60.jpg

FYI this is my own server and i'm the owner so i can do any changes here. :)

Tue, 06/18/2013 - 05:57
Locutus

Okay, you used the hostnames "mail.DOMAIN" and "smtp.DOMAIN" in your Outlook, but those names are not defined in your DNS zone. So you can either just use "DOMAIN" in Outlook, or add those "mail." and "smtp." names to the DNS zone.

Tue, 06/18/2013 - 06:38 (Reply to #6)
anthonyinit2012

yes and it worked :) i used "mydomain.com" for both field and outlook accept it, i send a test mail and mail got delivered.

if i want to add "mail." and "smtp." i should simply go to virtualmin virtual server (domain i want to add record) DNS option and create MX record including these names is that correct.

eg.

  Record name : mail.mydomain.com or smtp.mydomain.com

  Mail server hostname: mydomain.com

i need this for future reference so that i don't have to bother you again for this MX record issue.

also i have one more question, if i use free email account provided by godaddy do i need to edit any records in my virtualmin?

Please this is a great help for me so that i know next time what has to be done.

Thank you so much for your great support Locutus :)

Tue, 06/18/2013 - 07:41
andreychek

Howdy,

You don't actually need "mail.domain" and "smtp.domain" to be MX records, they only need to be added as DNS 'CNAME' records.

First, to fix this one domain, you can go into Server Configuration -> Edit DNS Records, and there create a DNS 'CNAME' record for each of those names, that associates "mail.domain" and "smtp.domain" with "domain".

To handle that for future domains, what you can do is go into System Settings -> Server Templates -> Default -> BIND DNS Domain. In there, you'll see a textarea labeled "BIND DNS records for new domains".

There, you can create two entries that would look something like this:

smtp.${DOM}.   IN      CNAME   YOUR_DOMAIN.TLD.
mail.${DOM}.   IN      CNAME   YOUR_DOMAIN.TLD.

That will tell Virtualmin to generate those two CNAME records each time a new domain is created.

-Eric

Tue, 06/18/2013 - 09:13
Locutus

Yep, what Eric said. :)

Additional info: Virtualmin normally automatically creates (and deletes) the "mail." entry when you turn on (off) the "Mail for domain" feature. The entries get created as A records pointing to the servers' IP, as opposed to CNAME records.

Tue, 06/18/2013 - 09:42
anthonyinit2012

Great, Thank you both for the lovely explanation really appreciate your support. now i can clear my head...

Have a great day :)

Topic locked