Can't add another MX record in DNS editor?

dan

Verified User
Joined
Jan 2, 2007
Messages
99
Location
North Wales, UK
Last edited:
And what does trouble you? I did not see anything wrong. In DNS editor of Directadmin that is how you add you MX record.

See documentation on Directadmin official site for details.
 
?

it doesn't make sense. the bind zone file has a syntax of;

<subdomain, or empty for zone apex> [optional ttl] IN MX <priority> <hostname>

i expected to see a text entry box after the MX priority dropdown allowing me to specify the host to send mail to. but it also seems to want to set it all on a subdomain of mail.danneh.org (so [email protected]), which is not what i want. to add a secondary mail server, i'd expect to;

1. leave the first field blank, denoting i wish to update the zone apex.
2. set the mx priority to 20.
3. enter the secondary hostname in the next (missing) field.
4. add.

or is this not possible, and i should update the zone file by hand?
 
it doesn't make sense. the bind zone file has a syntax of;

You should get closer with Directadmin then. If it did not work as it is expected, a lot of people would report it. Did you see any?

All MX records on a DNS page are related only to a selected domain, thus <subdomain, or empty for zone apex> is simply ommited. Priority can be selected from drop-menu (select box). And <hostname> you should put in a left field.

And afterwards see your named file in console and you'll see:

Code:
#cat /var/named/domain.com.db | grep MX
domain.com.       600     IN      MX      10 mail
 
To clarify, RFCs require that MX only point to a domain or subdomain, not an IP#. While the DirectAdmin interface shows you that entry on the left, in your zone file it ends up on the right.

So to create a backup mail server use mail2 (for example) in DirectAdmin, and then create an A record for mail2, with the IP# of the new server.

While DirectAdmin interface allows you to create an MX record for only the main domain in a zone file, you can create an entire zone file for a subdomain if you need to, and that way create an MX record for any subdomain.

I hope this clarifies it both for you and for the record.

Jeff
 
I do not understand how to configure the system in Directadmin:

I use a remote Mailserver of Opensrs.

This is the configuration that I use (Opensrs instructions) in my DNS system:

- - - - - - - - - - - -

CNAME Records
subdomain
mail.arcaedinet.es mail.arcaedinet.es.cust.b.hostedemail.com

- - - - - - - - - - - -

MX Records
subdomain Priority
[empty].arcaedinet.es 10 mx.arcaedinet.es.cust.b.hostedemail.com

- - - - - - - - - - - -

#################

In Directadmin
- - - - - - - - - - - -

CNAME Records
subdomain
mail.arcaedinet.es.[include the end period] mail.arcaedinet.es.cust.b.hostedemail.com

- - - - - - - - - - - -

But then I can not create the MX record
because if I try to create an empty subdomain it says "You must provide a valid name and value"

If i put:
mail 10

then I can not create an A record like
mail mx.arcaedinet.es.cust.b.hostedemail.com
because I got: "The value must be an IP address", and if I use the IP of mx.arcaedinet.es.cust.b.hostedemail.com it does not work.

#################

When sombody that have his mail account in the same server try to send me a mail he got:
The following address(es) failed: [email protected]
all relevant MX records point to non-existent hosts

#################

I am using MX Records > "Local Mail Server" uncheked

Thank you for your help.

Rafael
 
Last edited:
All real information needed if you expect help here; we can't use phony information in testing.

Jeff
 
I do not obscure my DNS data in this post.

I do not understand how to configure the system in Directadmin:

I use a remote Mailserver of Opensrs.

This is the configuration that I use (Opensrs instructions) in my DNS system:

- - - - - - - - - - - -

CNAME Records
subdomain
mail.arcaedinet.es mail.arcaedinet.es.cust.b.hostedemail.com

- - - - - - - - - - - -

MX Records
subdomain Priority
[empty].arcaedinet.es 10 mx.arcaedinet.es.cust.b.hostedemail.com

- - - - - - - - - - - -

#################

In Directadmin
- - - - - - - - - - - -

CNAME Records
subdomain
mail.arcaedinet.es.[include the end period] mail.arcaedinet.es.cust.b.hostedemail.com

- - - - - - - - - - - -

But then I can not create the MX record
because if I try to create an empty subdomain it says "You must provide a valid name and value"

If i put:
mail 10

then I can not create an A record like
mail mx.arcaedinet.es.cust.b.hostedemail.com
because I got: "The value must be an IP address", and if I use the IP of mx.arcaedinet.es.cust.b.hostedemail.com it does not work.

#################

When sombody that have his mail account in the same server try to send me a mail he got:
The following address(es) failed: [email protected]
all relevant MX records point to non-existent hosts

#################

I am using MX Records > "Local Mail Server" uncheked.

I add here two images of my DNS's configuration in OpenSrs and in Directadmin. Just for clarification.

DIRECTADMIN DNS'S

OPENSRS DNS'S



Thank you for your help, specially a Jeff :)

Rafael
 
Last edited:
Code:
<subdomain, or empty for zone apex> [optional ttl] IN MX <priority> <hostname>
This is the correct format.
So IMHO it would be best to put in the suggestion for DA to put the record in that way in DNS administration too.
At this moment, the last hostname part is not inlcuded. This makes such special changes more difficult then needed.
 
You're welcome, Rafael. I've already brought this thread to DirectAdmin staff attention as a request.

Jeff
 
Thanks Jeff. I am in contact with Directadmin Support (I have a licence).

I think the solution will be good for people that use Opensrs Mail System.

When I am sure about the dns’s configuration and everything works properly I will put here the solution. Today my new dns’s are propagating and it is a bad day for Opensrs Mail System because they are updating its program (Murphy's Law)…

Rafael
 
Hello,

If I'm reading the thread correctly, we're trying to add an MX for a subdomain.
Due to how DA was written (it's internal container class), the name of the MX (mail) is the index, and the number (10) is the value .
In the zone itself, it would be more like "domain.com." is the index, and "mail 10" is the value... but DA doesn't read it like this.

For this reason, right now, to create an MX on a subdomain, you must create a new zone:
Admin Level -> DNS Admin -> Add Zone -> domain = sub.domain.com

since the MX "index" is always the domain's name.

Part of the reason for this design choice is that if DA is in charge of email, then the sub.domain.com would need to be created as a full domain anyway, which would create a sub.domain.com as well to solve the issue.
Of course, this logic isn't correct if you're creating an external mail system... so for this reason, you'd just need to add the new sub.domain.com zone to get the MX records as desired.

Note, this implies that you want an email address [email protected].

John
 
This is the scenery

This is the scenery:

The server with Directadmin has several domains:

pensionsantalucia.es has website + mail in the server

paralaprensa.com has website + mail in the server

arcaedinet.es has website in the server BUT the mail server is external, it is in Opensrs (OpenSRS Email Service)

All domains dns's are external:
ns1.systemdns.com
ns2.systemdns.com
ns3.systemdns.com


Problem:

[email protected] can send mails to [email protected] and [email protected]
--
[email protected] and [email protected] CANNOT sent mails to [email protected]. The mails are not deliver.
--
[email protected] and [email protected] can send / receibe mails between them.
--

In var/log/exim/mainlog when [email protected] send a message to [email protected] I got this:

2012-07-02 01:41:49 1SlTm0-0006vx-Rp <= [email protected] H=67.red-2-136-103.dynamicip.rima-tde.net (pc20) [2.136.103.67] P=esmtpa A=login:[email protected] S=2603 id=004601cd57e2$b49743d0$1dc5cb70$@es T="test_from_santalucia" from <[email protected]> for [email protected]
2012-07-02 01:41:49 1SlTm0-0006vx-Rp lowest numbered MX record points to local host: arcaedinet.es
2012-07-02 01:41:49 1SlTm0-0006vx-Rp == [email protected] R=lookuphost defer (-1): lowest numbered MX record points to local host
2012-07-02 01:41:49 1SlTm0-0006vx-Rp Frozen


These are my dns's config (after support of Directadmin indicate me some corrections)

for ARCAEDINET.ES

for PENSIONSANTALUCIA.ES

for PARAPRENSA.COM

---
Instrucctions of OpenSRS Email Service to configure DNS's:
Instrucctions

DNS's configuration for arcaedinet
OPENSRS DNS'S

---

Obviously if I deactivate Named, /usr/local/directadmin/data/admin/services.status and set:
named=OFF
everthing works fine and all the mail accounts send and receive
---



Thank you everybody.

Rafael
 
Last edited:
2012-07-02 01:41:49 1SlTm0-0006vx-Rp lowest numbered MX record points to local host: arcaedinet.es

Check if "Use local mail server for this domain" is flagged, un flag it and should work

Regards
 
2012-07-02 01:41:49 1SlTm0-0006vx-Rp lowest numbered MX record points to local host: arcaedinet.es

Check if "Use local mail server for this domain" is flagged, un flag it and should work

Regards

I am using MX Records > "Local Mail Server" unflagged
 
Back
Top