From owner-freebsd-gnome@FreeBSD.ORG Fri Jan 23 13:56:35 2004 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A8C816A4CE for ; Fri, 23 Jan 2004 13:56:35 -0800 (PST) Received: from creme-brulee.marcuscom.com (rrcs-midsouth-24-172-16-118.biz.rr.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BCBD43D7F for ; Fri, 23 Jan 2004 13:55:43 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from [10.2.1.4] (vpn-client-4.marcuscom.com [10.2.1.4]) i0NLrDsm003400; Fri, 23 Jan 2004 16:53:14 -0500 (EST) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Byron Schlemmer In-Reply-To: <1074850384.9997.24.camel@pan.home> References: <1074850384.9997.24.camel@pan.home> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-rutGrZZ4ib4+sx3xiR2L" Organization: MarcusCom, Inc. Message-Id: <1074894912.768.117.camel@gyros> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 23 Jan 2004 16:55:12 -0500 X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on creme-brulee.marcuscom.com cc: FreeBSD GNOME Users Subject: Re: Evolution 1.4.5 and gethostbyname() X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2004 21:56:35 -0000 --=-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: >=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: >=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--