Article View: news.software.nntp
Article #32200Re: News RBL
From: brian moore
Date: Wed, 14 Oct 1998 00:00
Date: Wed, 14 Oct 1998 00:00
52 lines
3251 bytes
3251 bytes
[followups redirected]
On 14 Oct 1998 15:56:45 GMT,
Dougal Campbell <dougal@vespucci.advicom.net> wrote:
> For the record, I don't use MAPS or ORBS at a server level, though I do
> use them on my personal mailbox. So far I've only seen one non-spam
> message (out of 115 RBL/ORBS matches) hit by either system (I think it
> was in ORBS), and that host fixed their problem shortly thereafter and
> was removed from the list. However, I am considering using MAPS/RBL, if
> I can find a convenient way to give individual users a way to "opt-in" an
> override (anyone have any ideas on that?)
Sure: create a file (dbm, btree, hash: your choice) with users that want
filters. Trivial in Perl. Trivial in C, too.
In sendmail.cf, do something like:
Kpasswd user -m -a@
Kalias implicit -m -a@ /etc/mail/aliases
Klocal sequence alias passwd
Kfiltered dbm -N -m -a@ /var/adm/blockdb
SLocal_check_rcpt
R$+ $: $>3 $1
R$+ $: $( dequote $1 $1)
R$+ < @ $=w . > $: $>Check_Filt $1
R<OK> $#ok
[the rest of your check_rcpt stuff...]
SCheck_Filt
R$+ $: $( filtered $1 $)
R$+ @ $: $>Is_Filtered $1
# does the user exist?
R$+ $: $( local $1 $)
# yep, let them have the spam...
R$+ @ $@ <OK>
# nope, bogus users are all effectively filtered.
R$+ $: $>Is_Filtered $1
Then have Is_Filtered do all your extra special optional filters.
The above puts everyone in '/var/adm/blockdb' in the filtered list
as well as automagically making non-existent users and aliases
filtered. (Which you'll appreciate if you read postmaster bounces.)
--
Brian Moore | "The Zen nature of a spammer resembles
Sysadmin, C/Perl Hacker | a cockroach, except that the cockroach
Usenet Vandal | is higher up on the evolutionary chain."
Netscum, Bane of Elves. Peter Olson, Delphi Postmaster
Technical Details
Message-ID:
<slrn729o30.utj.bem@thorin.cmc.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.sendmail.mbox.zip!not-for-mailReferences:
<360244e0.2046353@news.clubi.ie> <6u3il9$gld@dfw-ixnews7.ix.netcom.com> <6u3ofq$5u3$2@nnrp02.primenet.com> <360587ce.8532708@news.wwa.com> <3616ee5b.71766183@207.207.0.105> <3618821c.5385341@news.wwa.com> <361bb00d.18846550@news.clubi.ie> <361ac2c8.3881000@news.wwa.com> <3622dbde.4453535@news.clubi.ie> <361c7022.2312726@news.wwa.com> <3620987e.1580692@news.clubi.ie> <361f0afd.1130356@news.wwa.com> <6vu9ip$8q3$1@flood.xnet.com> <362482df.3607309@news.wwa.com> <702hjt$6e6$1@polo.advicom.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn729o30.utj.bem@thorin.cmc.net> Subject: Re: News RBL Date: Wed, 14 Oct 1998 00:00:00 +0000 From: bem@news.cmc.net (brian moore) References: <360244e0.2046353@news.clubi.ie> <6u3il9$gld@dfw-ixnews7.ix.netcom.com> <6u3ofq$5u3$2@nnrp02.primenet.com> <360587ce.8532708@news.wwa.com> <3616ee5b.71766183@207.207.0.105> <3618821c.5385341@news.wwa.com> <361bb00d.18846550@news.clubi.ie> <361ac2c8.3881000@news.wwa.com> <3622dbde.4453535@news.clubi.ie> <361c7022.2312726@news.wwa.com> <3620987e.1580692@news.clubi.ie> <361f0afd.1130356@news.wwa.com> <6vu9ip$8q3$1@flood.xnet.com> <362482df.3607309@news.wwa.com> <702hjt$6e6$1@polo.advicom.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.sendmail.mbox.zip!not-for-mail X-Deja-AN: 401054367 X-10: yes X-11: R6.3 Followup-To: comp.mail.sendmail X-Complaints-To: abuse@cmc.net X-Trace: news.cmc.net 908386391 13976 (None) 206.102.31.253 Organization: Chambers Multimedia Connection X-Vile: yes User-Agent: slrn/0.9.5.3 (UNIX) X-Meow: yes Newsgroups: news.admin.net-abuse.usenet,news.software.nntp,comp.mail.sendmail