From owner-freebsd-questions@FreeBSD.ORG Tue Dec 13 20:31:20 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 7E8DF16A41F for ; Tue, 13 Dec 2005 20:31:20 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id F34AB43D91 for ; Tue, 13 Dec 2005 20:31:00 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-8) with SMTP id jBDKUrZk013628; Tue, 13 Dec 2005 22:30:53 +0200 Received: by flame.pc (Postfix, from userid 1001) id C23E91146C; Tue, 13 Dec 2005 22:30:01 +0200 (EET) Date: Tue, 13 Dec 2005 22:30:01 +0200 From: Giorgos Keramidas To: Gary Kline Message-ID: <20051213203001.GA14332@flame.pc> References: <20051213210155.E13042@chylonia.3miasto.net> <20051213201543.GA35221@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051213201543.GA35221@thought.org> Cc: Wojciech Puchar , freebsd-questions@freebsd.org Subject: Re: /etc/mail/local-host-names 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: Tue, 13 Dec 2005 20:31:20 -0000 On 2005-12-13 12:15, Gary Kline wrote: >On Tue, Dec 13, 2005 at 09:03:11PM +0100, Wojciech Puchar wrote: >> how line should look at this file >> >> to enable anybody in IPv4 10.0.0.0/8 to relay through this server >> >> 10. >> >> seems not to work. > > I think--but don't *quote* me:) -- that the host-names > file does eactly what ^Cwhostname does in sendmail.cf. > So if your host were named foo, you would put ^foo in > local-host-names. Not quite. Careful with those caret (`^') characters. The /etc/mail/local-host-names file is not where relay control is configured. This is what /etc/mail/access and /etc/mail/access.db are for. The format of /etc/mail/access is described in: /usr/share/sendmail/cf/README Look for the section starting with: +---------------------------------+ | ANTI-SPAM CONFIGURATION CONTROL | +---------------------------------+