Discussion:
[Dnsmasq-discuss] [OT] A question about MX records
Chris Green
2017-02-19 21:26:25 UTC
Permalink
I'm afraid this is a little off topic for dnsmasq but I don't know
where else I could ask.

If I have a small server that is both a basic internet host *and* the
mail server for that host how does one set up the MX record in the
zone file?

I.e. I have a server for the domain zbmc.eu and 'host zbmc.eu' returns
the following:-

***@cheddar$ host zbmc.eu
zbmc.eu has address 84.92.49.234
zbmc.eu mail is handled by 10 zbmc.eu.
***@cheddar$

Is this correct or should there be an alias so the mail server has a
different name?
--
Chris Green
r***@gmail.com
2017-02-20 03:25:01 UTC
Permalink
If by "alias", you mean a second A record for 84.92.49.234, then the common
practice is to use a hostname of mail.domain.tld

If by "alias", you mean a CNAME, you should know that listing a CNAME in an
MX record violates the RFC. It often works, but some servers check for
this and reject all mail originating from a domain whose MX is
misconfigured.
Post by Chris Green
I'm afraid this is a little off topic for dnsmasq but I don't know
where else I could ask.
If I have a small server that is both a basic internet host *and* the
mail server for that host how does one set up the MX record in the
zone file?
I.e. I have a server for the domain zbmc.eu and 'host zbmc.eu' returns
the following:-
zbmc.eu has address 84.92.49.234
zbmc.eu mail is handled by 10 zbmc.eu.
Is this correct or should there be an alias so the mail server has a
different name?
--
Chris Green
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Chris Green
2017-02-20 08:49:32 UTC
Permalink
Post by r***@gmail.com
If by "alias", you mean a second A record for 84.92.49.234, then the
common practice is to use a hostname of mail.domain.tld
Yes, this is what I intended to mean. My question is whether it's
necessary to do this so that the MX record points at mail.zbmc.eu or
is my existing setup where it simply points at the 'root' A record OK?
Post by r***@gmail.com
If by "alias", you mean a CNAME, you should know that listing a CNAME
in an MX record violates the RFC. It often works, but some servers
check for this and reject all mail originating from a domain whose MX
is misconfigured.
I'm afraid this is a little off topic for dnsmasq but I don't know
where else I could ask.
If I have a small server that is both a basic internet host *and* the
mail server for that host how does one set up the MX record in the
zone file?
I.e. I have a server for the domain [2]zbmc.eu and 'host [3]zbmc.eu'
returns
the following:-
[5]zbmc.eu has address 84.92.49.234
[6]zbmc.eu mail is handled by 10 [7]zbmc.eu.
Is this correct or should there be an alias so the mail server has a
different name?
--
Chris Green
_______________________________________________
Dnsmasq-discuss mailing list
[9]http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
References
2. http://zbmc.eu/
3. http://zbmc.eu/
4. http://zbmc.eu/
5. http://zbmc.eu/
6. http://zbmc.eu/
7. http://zbmc.eu/
9. http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
--
Chris Green
Loading...