From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 25 17:40:19 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08E6810656FE for ; Sun, 25 Mar 2012 17:40:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 19D478FC1B for ; Sun, 25 Mar 2012 17:40:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2PHeHZ4015584 for ; Sun, 25 Mar 2012 17:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2PHeHtr015583; Sun, 25 Mar 2012 17:40:17 GMT (envelope-from gnats) Resent-Date: Sun, 25 Mar 2012 17:40:17 GMT Resent-Message-Id: <201203251740.q2PHeHtr015583@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Harry Newton Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5E4C6106564A for ; Sun, 25 Mar 2012 17:31:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 49CC98FC14 for ; Sun, 25 Mar 2012 17:31:55 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q2PHVs5P047290 for ; Sun, 25 Mar 2012 17:31:54 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q2PHVsRC047289; Sun, 25 Mar 2012 17:31:54 GMT (envelope-from nobody) Message-Id: <201203251731.q2PHVsRC047289@red.freebsd.org> Date: Sun, 25 Mar 2012 17:31:54 GMT From: Harry Newton To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/166396: exim tcpwrappers twist error X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Mar 2012 17:40:19 -0000 >Number: 166396 >Category: ports >Synopsis: exim tcpwrappers twist error >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 25 17:40:17 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Harry Newton >Release: 9-STABLE >Organization: yewbarrow >Environment: FreeBSD hydra.yewbarrow.net 9.0-STABLE FreeBSD 9.0-STABLE #30: Wed Mar 14 22:00:27 GMT 2012 toor@hydra.yewbarrow.net:/usr/obj/usr/src/sys/HYDRA amd64 >Description: exim built with libwrap and following stanzas in /etc/hosts.allow: exim : localhost : allow ALL : ALL \ : severity auth.info \ : twist /bin/echo "You aren't welcome to use %d from %h." does not give expected behaviour when trying to contact exim from a remote machine. Expect (with telnet hydra 25): You aren't welcome to use exim from sphinx. but get nothing. Get in /var/log/messages: Mar 25 17:45:52 hydra exim: warning: /etc/hosts.allow, line 77: twist_option: dup: Bad file descriptor and in /var/log/auth.log: Mar 25 17:45:52 hydra exim: twist sphinx to /bin/echo "You aren't welcome to use exim from sphinx." Seems to be associated with exim only. If I replace exim with sshd in /etc/hosts.allow then works as expected. >How-To-Repeat: 1. Build mail/exim with tcpwrappers enabled. 2. In /etc/hosts.allow: Remove default match anything rule Add: exim : localhost : allow as only matching rule for exim. 3. telnet machine 25 >Fix: >Release-Note: >Audit-Trail: >Unformatted: