From owner-freebsd-questions Sun Feb 15 02:14:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA06952 for freebsd-questions-outgoing; Sun, 15 Feb 1998 02:14:46 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA06923 for ; Sun, 15 Feb 1998 02:14:39 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.7/8.8.7) with ESMTP id KAA10695; Sun, 15 Feb 1998 10:03:06 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199802151003.KAA10695@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Mark Turrin cc: freebsd-questions@FreeBSD.ORG Subject: Re: Spam filters In-reply-to: Your message of "Sat, 14 Feb 1998 12:59:06 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 15 Feb 1998 10:03:05 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Greetings, > > I'm running FreeBSD 2.2.5 and Sendmail 8.8.7 > > I added the rewrite rules that were given in the > /etc/mail/sendmail.cf.additions file and followed all the instructions in > the README there. What is not clear is should the following ruleset be > commented out as it states that it is for testing purposes only: > > Sxlat > R$* $$| $* $: $1 $| $2 > R$* $| $* $@ $>check_relay $1 $| $2 This rule is just for testing. When you run `sendmail -bt', you can't type ``$|'' without sendmail separating it on you - you therefore can't test the check_relay ruleset. Testing the xlat ruleset defeats this problem: $ sendmail -bt > xlat my.domain $| 1.2.3.4 ^D Removing it will do no harm until you want to test something. Leaving it there does no harm either. > Also are these rulesets the most recent? > > I'm not sure if these rulesets are working as I get the following messages > in the maillog file: > > Feb 14 12:37:48 argon sendmail[15696]: NOQUEUE: SYSERR(root): > host_map_lookup(cyberpromo.com): bogus NULL cache entry, errno = 0, h_errno = 0 > > What does the "bogus NULL cache entry" mean? > > Testing with sendmail -bt gives the following results: > > > check_mail mlt@cyberpromo.com > rewrite: ruleset 198 input: mlt @ cyberpromo . com > rewrite: ruleset 3 input: mlt @ cyberpromo . com > rewrite: ruleset 96 input: mlt < @ cyberpromo . com > > host_map_lookup(cyberpromo.com): bogus NULL cache entry, errno = 0, > h_errno = 0 > rewrite: ruleset 96 returns: mlt < @ cyberpromo . com > > rewrite: ruleset 3 returns: mlt < @ cyberpromo . com > > rewrite: ruleset 198 returns: $# error $: 521 #blocked . contact > postmaster This *may* be because you haven't got at least two words in your spam database. When sendmail executes ``$(Kfilename arg $)'', it replaces any found ``arg'' with whatever's on the right hand side in the database (and appends any -a stuff from the K line). I've never seen this error, so I'm just guessing. > > I'm not getting the "Check_mail rejects:" or "Check_relay rejects:" as > specified in the README. > > Any help is greatly appreciated. Get the latest releng_2_2 stuff. It checks the input domain recursively so that you can also put hostnames in your spam files. But most importantly, it's got some comments at the top of the file detailing what can break the rulesets (FEATURE(nocanonify) is the most common). > Thanks, > > ___________________________________________________________________ > Mark L. Turrin mlt@linkzone.com > --- > Always remember you are unique, just like everybody else. -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message