Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2012 17:31:54 GMT
From:      Harry Newton <hn@yewbarrow.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/166396: exim tcpwrappers twist error
Message-ID:  <201203251731.q2PHVsRC047289@red.freebsd.org>
Resent-Message-ID: <201203251740.q2PHeHtr015583@freefall.freebsd.org>

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

>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:



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