The MX record is the mail server that handles the mail for the domain (@domain.com).
I usually setup a mailhost.domain.com reference to the IP address of the mail
server the has the user names for the domain. Then I put mailhost.domain.com
into the MX record. The MX record should only reference the mail server's IP
address.
Attached is a sample DNS file.
Gregg
>I've created a few virtual domains on my system (Linux Mandrake 7.02), and
>they are all working well. Now I wish to redirect mail sent to any one of
>the virtual domains to the correct place.
>
>I have only one question at this point that I'd like to clear up. I can't
>find any reference in the O'Reilly "DNS and BIND" book that explains
>exactly how to do this. Anyway, my only question at this point is.. in
>the MX part of the DNS record of a virtual domain, I don't quite
>understand "what" the mail server is.. is it my server? Or do I have some
>special name for the mail server?? So, if it's just my server, and I have
>a virtual domain user that I want to have mail sent to, which one of these
>MX setups is correct?
>
>virtualdomain.com. IN MX 10 server.com.
>or
>virtualdomain.com. IN MX 10 virtualdomain.com.
>
>Thanks for any help.
>
>James
>
imcmail.com. IN SOA ns1.dmsn.com. hostmaster.dmsn.com. (
200005152034 ; serial
10800 ; refresh
3600 ; retry
604800 ; expire
3600 ; default_ttl
)
IN NS ns1.dmsn.com.
IN MX 5 mailhost.imcmail.com.
imcmail.com. IN A 208.9.178.5
mail.imcmail.com. IN A 208.9.178.5
mailhost.imcmail.com. IN A 208.9.178.5