Date: Sun, 16 Nov 1997 06:46:03 -0800 (PST) From: "Jonathan M. Bresler" <jmb> To: brian@awfulhak.org (Brian Somers) Cc: jmb@freebsd.org, brian@awfulhak.org, freebsd-hackers@freebsd.org Subject: Re: /etc/mail filters in 2.2.5 Message-ID: <199711161446.GAA24588@hub.freebsd.org> In-Reply-To: <199711161415.OAA27333@awfulhak.demon.co.uk> from "Brian Somers" at Nov 16, 97 02:15:48 pm
next in thread | previous in thread | raw e-mail | index | archive | help
Brian Somers wrote: > > > 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 ahh.....did you use DOS! "^M" is teh DOS extra end-of-line character. DOS uses both <cr> and <lf> to indicate and end-of-line. Unix uses only one, the Mac uses the other. > > > 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. cool....let me know if there are any problems. > > > 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 there are a number of ways to skin this cat. ohhh...sorry, jordan. i chose not to use HACK's or m4 macros so that whatever eric allman decides upon will not create a name conflict. (peter weem asked me about this too ;) > > 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 ?). m4 is just a preprocessor, but be carefull it expanes keywords in comment lines as well ;* be sure to get the second edition of sendmail from O'Reilly & Assoc its their biggest book, enjoy! ;) jmb
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711161446.GAA24588>