Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jan 2004 16:55:12 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Byron Schlemmer <byrons@telkomsa.net>
Cc:        FreeBSD GNOME Users <gnome@freebsd.org>
Subject:   Re: Evolution 1.4.5 and gethostbyname()
Message-ID:  <1074894912.768.117.camel@gyros>
In-Reply-To: <1074850384.9997.24.camel@pan.home>
References:  <1074850384.9997.24.camel@pan.home>

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

--=-rutGrZZ4ib4+sx3xiR2L
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2004-01-23 at 04:33, Byron Schlemmer wrote:
> Hi all,
>=20
> 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 :
>=20
> http://www.freebsd.org/cgi/getmsg.cgi?fetch=3D252448+255442+/usr/local/ww=
w/db/text/2003/freebsd-gnome/20031221.freebsd-gnome
>=20
> 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 :
>=20
> Error while performing operation:
> DATA termination response error: Requested action not taken: mailbox
> unavailable.
>=20
> I then used Ethereal to track down the transaction and compare the differ=
ences
> between the Linux box and my FreeBSD desktop. It seems for some reason th=
e FreeBSD=20
> box is setting my hostname to my internal private IP address instead of m=
y machines
> name and the Linux box isn't and thats why the Linux box seems to work. H=
ere is a top
> of the transaction, first FreeBSD :
>=20
> 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>
>=20
> Linux :
>=20
> 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>
>=20
> As you can see the difference is EHLO, I tried my theory manually telneti=
ng to port 25
> and trying with EHLO pan.home and then with EHLO 192.168.0.5 and it faile=
d on the IP
> address version, for obvious reasons.=20
>=20
> Now the million dollar question, why is FreeBSD sending the IP address an=
d not the
> hostname? Yes, I've checked both forward and reverse lookups work and tha=
t `hostname`
> prints the correct information.
>=20
> Now, upon searching the web I found :
>=20
> http://lists.freebsd.org/pipermail/freebsd-gnome/2003-May/001056.html
>=20
> and=20
>=20
> http://bugzilla.ximian.com/show_bug.cgi?id=3D42805
>=20
> So it seems other people have had a similar problem, is FreeBSDs gethostb=
yname()
> returning the correct values? If so, why is Evolution setting the wrong h=
ostname
> and how do I fix it?

Evo uses gethostbyname_r.  However, this function is not available on
FreeBSD, so Evo includes its own version.  THAT may be buggy.  Linux
_does_ have gethostbyname_r, and thus the internal Evo function is not
used.  You may want to poke around the code, and see if something
obviously wrong jumps out at you.

Joe

>=20
> Thanks,
--=20
PGP Key : http://www.marcuscom.com/pgp.asc



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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAEZg/b2iPiv4Uz4cRAskSAJ49gnvymDdltPaUn+ZoCeLiAFIt+wCaAr1k
w5m5a2XhIrWM0K1sbxjHk7Q=
=avjT
-----END PGP SIGNATURE-----

--=-rutGrZZ4ib4+sx3xiR2L--



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