I am trying to configure my own mail server.
My domain name is: example.net
I've created a subdomain (a virtual host for Apache 2): mail.example.net
My hostname is: server01
(the name of the server I get using hostname in Ubuntu's command line).
I only have one server with several virtual host: example.net
(website) and mail.example.net
(mail).
My record for the DNS zone file for the domain example.net
should be:
mail 10800 IN A 123.123.123.123
@ 10800 IN MX 10 server01.mail.exemple.net.
So my zone is:
@ 10800 IN A 123.123.123.123
mail 10800 IN A 123.123.123.123
server01 10800 IN A 123.123.123.123
www 10800 IN A 123.123.123.123
@ 10800 IN MX 10 server01.mail.example.net.
or:
mail 10800 IN A 123.123.123.123
@ 10800 IN MX 10 mail.example.net.
So my zone is:
@ 10800 IN A 123.123.123.123
mail 10800 IN A 123.123.123.123
server01 10800 IN A 123.123.123.123
www 10800 IN A 123.123.123.123
@ 10800 IN MX 10 mail.example.net.