I'm just a bit confused about the correct DNS setup for hosting multiple domains on a single server with one ip.
For example the mail server (domain/reverse: example.com) should host 3 domains:
example.com
domain.com
test.com
So whats the correct dns setup?
example.com mx 1 example.com
domain.com mx 1 example.com
test.com mx 1 example.com
or
example.com mx 1 example.com
domain.com mx 1 domain.com
test.com mx 1 test.com
And whats about the mx priority? Only 1 entry for each host? I guess thats fine, because there is only one server and no extra failover server.