Questions tagged [mx-record]

MX records are used by the Domain Name System (DNS) to control the delivery of email to mail servers using SMTP.

226 questions
50
votes
8 answers

How to get mx records for a dns name with System.Net.DNS?

Is there any built in method in the .NET library that will return all of the MX records for a given domain? I see how you get CNAMES, but not MX records.
Segfault
  • 7,296
  • 2
  • 31
  • 50
31
votes
3 answers

Mailgun messages from subdomain without MX record get rejected by some mail-providers

I'd like to use Mailgun to send e-mails from a web application, sending newsletters as well as transactional mails. I set up a sudomain "subdomain.domain.tld" and configured the DNS as specified on the Mailgun panel, except for the (optional) MX…
theister
  • 723
  • 1
  • 6
  • 8
31
votes
5 answers

Using MX Records to Forward Email to Another Domain

I have a domain hosted at Dreamhost -- foobar.com. It has Google Apps associated with it: the 50 free email accounts which are no longer available for a new domain. I just got another domain -- foobar.edu. I want foobar.edu to become my main…
Christopher Werby
  • 720
  • 2
  • 7
  • 13
23
votes
2 answers

Setting up an email while hosting on Netlify

Wondering if anyone has experience setting an email while hosting a site with Netfliy? I registered a domain name using google domains and pointed the name servers to Netlify that is hosting a Gatsby static site. I would like to set up an email on a…
fstep
  • 614
  • 1
  • 7
  • 12
21
votes
1 answer

Do CNAME records also forward MX requests?

My DNS has a set up for the domain base.com that consists of A and MX records. There are several other domains that are set up with CNAME records, pointing to base.com. Do I need to set up anything special (like extra MX records) for the CNAME…
Jpsy
  • 17,245
  • 6
  • 99
  • 99
19
votes
2 answers

Can I have a different mail server for each subdomain?

Basically, some GoDaddy DNS help text has me scratching my head. Godaddy's DNS service says, "You cannot set up your domain name to use more than one mail provider at a time." But it doesn't talk about more than one subdomain name, with one mail…
Chris Calloway
  • 1,262
  • 1
  • 8
  • 12
17
votes
5 answers

Why have MX records?

I previously asked a question regarding MX records (and appreciate the thoughtful answers I received from SO'ers). Now that that problem is resolved, I want to step back and ask why there are MX records in the first place. Specifically: Why does…
Jim Nelson
  • 1,618
  • 3
  • 15
  • 26
17
votes
5 answers

Using MX records to validate email addresses

Scenario: I have a contact form on my web app, it gets alot of spam. I am validating the format of email addresses loosely i.e. ^.+@.+\..+$ I am using a spam filtering service (defensio) but the spam scores returned are overlapping with valid…
Question Mark
  • 3,546
  • 1
  • 23
  • 30
16
votes
2 answers

MX Record lookup and check

I need to create a tool that will check a domains live mx records against what should be expected (we have had issues with some of our staff fiddling with them and causing all incoming mail to redirected into the void) Now I won't lie, I'm not a…
Christopher Long
  • 701
  • 4
  • 10
  • 17
10
votes
5 answers

Pulling MX record from DNS server

I am writing an application that is requiring me to do a DNS lookup for an MX record. I'm not sure if anyone has had experience doing this kind of work but if you do, any help would be appreciated. EDIT: The thing that I'm going for is an…
Suroot
  • 4,155
  • 1
  • 19
  • 28
7
votes
3 answers

Finding the MX Record using C#?

How can I find the MX record for a mail server in C#?
Doron Sinai
  • 1,146
  • 3
  • 12
  • 28
7
votes
1 answer

Route 53 and GMail - MX redirection

My domain name use Route 53 like DNS Servie. Is there a way to handle email for my domain ? Example: admin(at)mydomain.com pointing on a Gmail address ? Is it mandatory to use Google App and pay for that ? Thank you
Marc Delalonde
  • 285
  • 4
  • 15
7
votes
4 answers

CNAME for Azure application causes email problems with MX and A records ignored

We have an application running on Microsoft Azure and have set up a CNAME record to cover the domain so we can have the nice URL of http://example.com (note I am replacing our real domain with example.com throughout this). CNAME mydomain.com ->…
Jezbers
  • 795
  • 8
  • 19
7
votes
2 answers

Creating mail account not a mailbox using imap in php

We all know how to open a mailbox using imap_open. Here the problem is i'm creating a maill system here. I'm not able to find to create a mail account with imap/pop3 in php. Is it is possible ? Assume suppose my domain is www.studentmug.com. I want…
5
votes
1 answer

How to use DNS resolver in Python 3?

I want to check MX-Record from Python. So I installed the dnspython package, but when I try to import following library: import dns.resolver It shows the following error: ModuleNotFoundError: No module named 'dns'. I use PyCharm and Python 3.
Awesome
  • 442
  • 1
  • 6
  • 15
1
2 3
15 16