DNS setting for a single box to receive email 

Newsgroups:  comp.mail.misc
Date:        Wed, 25 Feb 2004 17:04:26 +0000 (UTC)
> Do I need to setup the DNS MX record in order to receive email?

In your case, no.

> Seems to me the DNS MX record is to refer to some other machines. I
> just have a single RedHat Linux box, there is no other mail
> servers I can refer to. When I set the DNS MX record to my own dns
> name, I get "mail loops back" error:

http://www.brandonhutchinson.com/mail_loops_back_to_me.html

DNS setting for a single box to receive email 

> Do I need to setup the DNS MX record in order to receive email?
>
> Seems to me the DNS MX record is to refer to some other machines. I
> just have a single RedHat Linux box, there is no other mail
> servers I can refer to. When I set the DNS MX record to my own dns
> name, I get "mail loops back" error

You should have an MX record, but you can kludge by with an A record.

Regardless, you must configure your server to recognize its local domains, otherwise it will just go on looking for somewhere else to forward its mail.

Thor

DNS setting for a single box to receive email 

> Oh, thanks, that solved the mystery problem. This is the first
> time that I use no-ip.com to give my Linux a permanent DNS name.
> Previously I set my host name to an arbitrary name. Now it's
> working fine.
>
> Do my permanent DNS name and the host name I give to my box have
> to agree on each other, in order to get the email?

Yes, set my host name and get the same error as before again.

Tong

DNS setting for a single box to receive email 

> I fixed my DNS MX problem, and renamed my box to the FQDN solved
> the problem.
>
> However, new problem occurs. My httpd won't start:
>
> -------------------
> [Fri Feb 27 09:06:06 2004] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "myip.myhost.net"
> Configuration Failed!
> -------------------
>
> And as the aftermath, the squid won't start either.
>
> Why don't I get the same error when using an arbitrary name
> for my box? What is the real difference?

Oh, I changed host name via redhat-config-network, which apparently does not do all the necessary jobs.

The hostname in /etc/hosts was left unchanged by redhat-config-network.

Tong