Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jan 2004 11:33:06 +0200
From:      Byron Schlemmer <byrons@telkomsa.net>
To:        FreeBSD-GNOME <gnome@freebsd.org>
Subject:   Evolution 1.4.5 and gethostbyname()
Message-ID:  <1074850384.9997.24.camel@pan.home>

next in thread | raw e-mail | index | archive | help

--=-N0N2Fu3wyhpv0bTIZicz
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


Hi all,

A while back I reported problems sending email through Evolution 1.4.4/5
using the SMTP option with my ISPs SMTP server address. The original
email is this one :

http://www.freebsd.org/cgi/getmsg.cgi?fetch=3D252448+255442+/usr/local/www/=
db/text/2003/freebsd-gnome/20031221.freebsd-gnome

Now, the other day I had to install Linux on a spare box due to hardware
failure on my primary desktop, then I noticed that I could send email
from it using Evolution 1.4.5 and the SMTP option. Odd. I've since fixed
the problem on my main desktop and reinstalled 5.2-RELEASE with GNOME
2.4.2 and Evolution 1.4.5. I tried to send an email now from the newly
installed FreeBSD box, BOOM!, same error, namely :

Error while performing operation:
DATA termination response error: Requested action not taken: mailbox
unavailable.

I then used Ethereal to track down the transaction and compare the differen=
ces
between the Linux box and my FreeBSD desktop. It seems for some reason the =
FreeBSD=20
box is setting my hostname to my internal private IP address instead of my =
machines
name and the Linux box isn't and thats why the Linux box seems to work. Her=
e is a top
of the transaction, first FreeBSD :

byrons@pan:~$ head freebsdstream.txt
220 ctb-mesg2.saix.net ESMTP Postfix
EHLO [192.168.0.4]
250-ctb-mesg2.saix.net
250-PIPELINING
250-SIZE 102400000
250-ETRN
250 8BITMIME
MAIL FROM:<byrons@telkomsa.net>

Linux :

byrons@pan:~$ head linuxstream.txt
220 ctb-mesg2.saix.net ESMTP Postfix
EHLO pan.home
250-ctb-mesg2.saix.net
250-PIPELINING
250-SIZE 102400000
250-ETRN
250 8BITMIME
MAIL FROM:<byrons@telkomsa.net>

As you can see the difference is EHLO, I tried my theory manually telneting=
 to port 25
and trying with EHLO pan.home and then with EHLO 192.168.0.5 and it failed =
on the IP
address version, for obvious reasons.=20

Now the million dollar question, why is FreeBSD sending the IP address and =
not the
hostname? Yes, I've checked both forward and reverse lookups work and that =
`hostname`
prints the correct information.

Now, upon searching the web I found :

http://lists.freebsd.org/pipermail/freebsd-gnome/2003-May/001056.html

and=20

http://bugzilla.ximian.com/show_bug.cgi?id=3D42805

So it seems other people have had a similar problem, is FreeBSDs gethostbyn=
ame()
returning the correct values? If so, why is Evolution setting the wrong hos=
tname
and how do I fix it?

Thanks,

--=20

	Byron

--=-N0N2Fu3wyhpv0bTIZicz
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAEOpQN4F35/M/8HYRAsVUAJ47SP9tuW62yHyLi+2spK52Oi/WGQCgmWoj
VnZmFLlz7agCMBW7GPWDVI8=
=qpdc
-----END PGP SIGNATURE-----

--=-N0N2Fu3wyhpv0bTIZicz--



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