From owner-freebsd-gnome@FreeBSD.ORG Fri Jan 23 01:58:02 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 64C0016A4CE for ; Fri, 23 Jan 2004 01:58:02 -0800 (PST) Received: from ctb-mesg4.saix.net (ctb-mesg4.saix.net [196.25.240.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B07B43D5C for ; Fri, 23 Jan 2004 01:57:22 -0800 (PST) (envelope-from byrons@telkomsa.net) Received: from pan.home (rrba-185-137.telkomadsl.co.za [165.165.185.137]) by ctb-mesg4.saix.net (Postfix) with ESMTP id 9F0BBC4CC for ; Fri, 23 Jan 2004 11:33:08 +0200 (SAST) From: Byron Schlemmer To: FreeBSD-GNOME Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-N0N2Fu3wyhpv0bTIZicz" Message-Id: <1074850384.9997.24.camel@pan.home> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 23 Jan 2004 11:33:06 +0200 Subject: 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 09:58:02 -0000 --=-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: 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: 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--