Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Oct 2002 14:31:25 +0200
From:      =?ISO-8859-1?Q?Jesper_Blomstr=F6m?= <jesper.b@home.se>
To:        freebsd-newbies <freebsd-newbies@freebsd.org>
Subject:   /etc/hosts, hostname and mail
Message-ID:  <3DA17E9D.7040309@home.se>

next in thread | raw e-mail | index | archive | help
Dear FreeBSD-experts,

I canīt get my mail to work properly and I think itīs because I donīt 
know what to write into the file /etc/hosts
Default I think the file looks /looked something like this (the two 
critical lines):

::1                 localhost localhost.my.domain
127.0.0.1      localhost localhost.my.domain

I do not have an own domain I just want my mail to work.

My hostname is set to xxxxx and when I try to send a mail via the consol 
I get:
Domain of sender address root@localhost.my.domain does not exist.

I understand that Iīm using a fake domain but what shall I write?

If I try to send a mail from X/Mozilla I get something like: "unable to 
connect to your smtp please check your lousy system".
I have tried setting outgoing mailserver to "localhost" and to my ISP:s 
smtp but it doesnīt change anyting. I get the samt error-message.

My questions to you:

1. Can I set my hostname to anything I want?
2. How shall my (according to question nr.1) /etc/hosts-file look like?
3. Is there anyting else I need to do?


Many thanks from a frustrated.

/ Jeppe



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DA17E9D.7040309>