From owner-freebsd-questions@freebsd.org Wed Jan 4 13:45:22 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A66DEC9E095 for ; Wed, 4 Jan 2017 13:45:22 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17C90176B for ; Wed, 4 Jan 2017 13:45:21 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id v04DjEE5058621; Thu, 5 Jan 2017 00:45:14 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 5 Jan 2017 00:45:13 +1100 (EST) From: Ian Smith To: Bernt Hansson cc: freebsd-questions@freebsd.org Subject: Re: Sendmail on freebsd In-Reply-To: <01675719-f581-9fae-f242-06cebac424be@bananmonarki.se> Message-ID: <20170105003504.S26979@sola.nimnet.asn.au> References: <20170104232802.Y26979@sola.nimnet.asn.au> <01675719-f581-9fae-f242-06cebac424be@bananmonarki.se> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2017 13:45:22 -0000 On Wed, 4 Jan 2017 14:19:56 +0100, Bernt Hansson wrote: > On 2017-01-04 14:06, Ian Smith wrote: > > In freebsd-questions Digest, Vol 657, Issue 5, Message: 18 > > On Wed, 4 Jan 2017 08:26:48 +0100 Bernt Hansson > > wrote: > > > If i put this in /etc/mail/access > > > > > > com REJECT > > > > > > Does that reject all domains that contain com > > > or just TLD com. > > > > The latter, BUT unless things have changed, you need to specify what > > kind of header it appears in, e.g (and yes, these are real entries): [..] > Well, that does not answer my question, or my question is not quite right. > > Have this in access > romtelecom.net REJECT > > Would sendmail reject that based on > > com REJECT No, well as I said, unless things have changed radically, the latter would reject [*.]com but not domains containing the substring 'com'; the former would reject only [*.]romtelecom.net But I'm really not used to that format, without a header type, and it's therefore unclear to me which mail header/s that would apply to, so I hope someone not so thoroughly out of date will answer this .. cheers, Ian