From owner-freebsd-questions@FreeBSD.ORG Mon Jul 7 04:11:13 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A75837B401 for ; Mon, 7 Jul 2003 04:11:13 -0700 (PDT) Received: from catflap.home.slightlystrange.org (pc4-cmbg1-4-cust87.cmbg.cable.ntl.com [80.6.127.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F49743FBF for ; Mon, 7 Jul 2003 04:11:12 -0700 (PDT) (envelope-from danielby@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 4.20) id 19ZTtn-000JV8-Fb for freebsd-questions@freebsd.org; Mon, 07 Jul 2003 12:11:11 +0100 Date: Mon, 7 Jul 2003 12:11:11 +0100 From: Daniel Bye To: FreeBSD Questions Message-ID: <20030707111111.GC73629@catflap.home.slightlystrange.org> Mail-Followup-To: FreeBSD Questions Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4bRzO86E/ozDv8r1" Content-Disposition: inline User-Agent: Mutt/1.4.1i Sender: Daniel Bye Subject: uname(3) return being truncated X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dan@slightlystrange.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 11:11:13 -0000 --4bRzO86E/ozDv8r1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Morning all, I have just come across something that strikes me as a little peculiar. I don't know if it's a FreeBSD peculiarity, or an Exim oddity. My MTA is exim 4.20. I had left the $primary_hostname unset in my config file, expecting exim to take the return value from uname(3), which is the stated default action. However, looking through headers of test mails I sent myself (posts to the list were failing - without bounces...), I found the hostname was mangled slightly - the last character of the FQDN was truncated. Received: from danielby by catflap.home.slightlystrange.or with local (Exim ^^^ I had a quick look in sys/utsname.h, and lib/libc/gen/uname.c, but don't know enough C to figure what's going on. Is there a limit on the length of the nodename that is returned? Or is exim chopping the last character? Explicitly setting $primary_hostname in the exim config fixes the problem - my posts now get through to the list again. Just wondered if anyone could shed any light? Cheers, Dan --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --4bRzO86E/ozDv8r1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/CVVPhvzwOpChvo8RAjIgAJ9FcHp6BIH/TyqG1W21HjQLfpmY1wCfY14A zjhXi3Pc3dmDjiDMH/KkGt0= =1zUH -----END PGP SIGNATURE----- --4bRzO86E/ozDv8r1--