From owner-freebsd-questions@FreeBSD.ORG Mon May 21 22:37:34 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C86AA16A41F for ; Mon, 21 May 2007 22:37:34 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id 8A53D13C457 for ; Mon, 21 May 2007 22:37:34 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so412360and for ; Mon, 21 May 2007 15:37:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=CgwkgeIB2wHsZSLN0ZPB7MCVSZoULaMRVaDhoWDDjjep+I8sH2fkRZQ5OR3Chp20xzsidEBru8rZqHoABKleFotneQV/hvgsgCevDb7LGX44dfea7bd3UJ2Xa/9MDK4GO/NgfZ2vBVGToo0s+Bb6zU4Y6S1vNmjD4+Pxr1yd4dk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=gwFIDGlv1do4QFTtQvAeyAdvHp3dGqMU1NRAlr8AmxWC2thKFDOxKX5602afgw4TpTF+WSZTeo3m+u1IHDAMmN2UCiPWZuZ1xfVkWIqGxfgnKdO35x/yFhCxnb5NPT3Sq/XPnixm1AJBkkZIr3GOw/ySayufxo+pXuhf5pnmdEk= Received: by 10.100.167.7 with SMTP id p7mr3340112ane.1179787053808; Mon, 21 May 2007 15:37:33 -0700 (PDT) Received: by 10.100.79.17 with HTTP; Mon, 21 May 2007 15:37:33 -0700 (PDT) Message-ID: <26ddd1750705211537j78ed83fdm921f7f5e5df5c4@mail.gmail.com> Date: Mon, 21 May 2007 18:37:33 -0400 From: "Maxim Khitrov" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Sendmail ignores hosts.allow X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2007 22:37:34 -0000 Hello, I'm trying to restrict access to sendmail via hosts.allow. Don't need a firewall, since I just want to block everyone but the localhost from sending e-mail out. Anyway, it seems that sendmail ignores these settings even though it was compiled with TCPWRAPPERS. I added "sendmail : all : deny" as the very first line in hosts.allow, just to see if it will let me connect from anywhere. It does - not just from localhost, but from all remote locations as well. I have no problems connecting and sending e-mail. Am I missing something? I tested the same setup with sshd, and that works properly. After a quick search on google it seems that I'm not the only one with this problem, but I couldn't find any solution to this. Any help is greatly appreciated. - Maxim Khitrov