Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Sep 2002 11:11:48 +1200
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Frank Heitmann <fh31415@gmx.net>
Cc:        FreeBSD-Questions@FreeBSD.ORG
Subject:   Re: Basic mail and Sendmail problem
Message-ID:  <20020907231148.GB69262@grimoire.chen.org.nz>
In-Reply-To: <3D7A16E6.8070203@gmx.net>
References:  <3D7A16E6.8070203@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 07, 2002 at 05:10:30PM +0200, Frank Heitmann wrote:
> Hi,
> 
> I am new to FreeBSD and have a problem with mail (and sendmail
> I suppose). At home I have a desktop PC with only a dialup PPP (PPPoE)
> connection; now I want to send a message with 'mail' from one local
> user to another (for example to remind myself to do something), but
> I already get stuck here.
> 
> My /etc/hosts file looks like this:
> 
> 127.0.0.1     localhost
> 192.168.1.1   myhost.mydomain    myhost
> 
> in /etc/rc.conf I have:
> 
> hostname="myhost.mydomain"
> ifconfig_ed0="inet 192.168.1.1 netmask 255.255.255.0"
> 
> When I know try to send a mail to 'userone' with 'mail -v userone'
> I get the following error (same error in /var/spool/clientmqueue):
> userone... Connecting to localhost.mydomain. via relay...
> userone... Deferred: Connection refused by localhost.mydomain.

Make the following change to /etc/hosts:

    127.0.0.1     localhost localhost.mydomain
    192.168.1.1   myhost.mydomain    myhost

-- 
Jonathan Chen <jonc@chen.org.nz>
-----------------------------------------------------------------------
"One, with God, is always a majority, but many a martyr has been burned
   at the stake while the votes were being counted."  -- Thomas B. Reed

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




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