From owner-freebsd-hackers Sun Nov 16 06:26:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA23530 for hackers-outgoing; Sun, 16 Nov 1997 06:26:44 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA23514; Sun, 16 Nov 1997 06:26:35 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.7) with ESMTP id OAA27333; Sun, 16 Nov 1997 14:15:48 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199711161415.OAA27333@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Jonathan M. Bresler" cc: brian@awfulhak.org (Brian Somers), freebsd-hackers@freebsd.org Subject: Re: /etc/mail filters in 2.2.5 In-reply-to: Your message of "Sat, 15 Nov 1997 20:09:52 PST." <199711160409.UAA15831@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 16 Nov 1997 14:15:48 +0000 From: Brian Somers Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Brian, > there are a couple issues here: > > Brian Somers wrote: > > I installed the /etc/mail stuff a few days ago, and added a few sites > > to domains.txt, specifically: > > > > BIGFOOT.DALTEK.NET^M #blocked. contact postmaster > > first, that "^M" is it in the file? > is so please delete it. > after deleting the "^M" > cd /etc/mail; make install Hmm, the domains.txt I got with the ``make'' had 'em in, so I figured they were meant to be :-I > second, the way i wrote the rules, they block mail > from a domain, hence the file is called domains.txt ;) > bigfoot.daltek.net is a host, rather than a domain. > you can change the entry domains.txt to "daltek.net". > that will block mail from all of daltek.net. or you can > use the amended rules below to block mail from both > hosts and domains. then you can use entries like > "bigfoot.daltek.net" in domains.txt. > > add the rules below that are *not* preceded by a ">" > at the start of the line ;) Ok, done - thanks. I'll keep an eye on things. > jmb It also looks like my FEATURE(`nocanonify') dodges all these rules anyway, so I've lost that. Mike Burgett pointed me at an interesting site: http://www.informatik.uni-kiel.de/%7Eca/email/check.html and suggests HACK(`use_ip', `/etc/LocalIP')dnl HACK(`use_relayto', `/etc/RelayTo')dnl HACK(`check_mail2', `hash /etc/Banned.db')dnl HACK(`check_relay')dnl HACK(`check_rcpt4')dnl as a cleaner solution. I'm only half-quoting, so forgive me if I'm missing something relevent. I'm really gonna have to figure out how all this works at some point (Yep, O'Reilly & Assoc. is the best read I suspect, but does it cover all the m4 stuff ?). -- Brian , , Don't _EVER_ lose your sense of humour....