Article View: aus.net.mail
Article #2343Re: Moneyworld spams
From: michael butler
Date: Mon, 26 Aug 1996 00:00
Date: Mon, 26 Aug 1996 00:00
65 lines
2483 bytes
2483 bytes
Richard A. Muirden (richard@bofh.its.rmit.EDU.AU) wrote: : So anyone have a fudged sendmail rulset we can all insert in our : sendmail.cf's? I got sick and tired of them ages ago - they were using our : machine to bounce their crap throughout humanity. I did a filter block on : their subnet which worked to a degree, but the old MX problem continues. In sendmail.cf (AFAIK for almost any version 8.x.y) .. i) define a new class, in this case 'R' for 'reject', to be read from a file: [ .. ] ################## # local info # ################## Cwlocalhost # file containing names of hosts for which we receive email Fw/etc/sendmail.cw # file containing host/domain names we ignore FR/etc/reject-mail [ .. ] ii) Add to the user-configurable part of ruleset zero .. [ .. ] ################################################################### ### Ruleset 98 -- local part of ruleset zero (can be null) ### ################################################################### S98 R$+ < @ $=R . > $#error $@ 5.1.4 $: "We dont accept junk mail, go away" [ .. ] Note that the whitespace (to '$#') here _must_ a tab. iii) Create a file (in my case /etc/reject-mail) containing those hosts/domains you don't want in the same format as sendmail.cw .. one or more entries per line separated by whitespace will do it. iv) restart the sendmail daemon. NOTE: this will prevent not only the receipt of mail from the 'offending' domain but also the delivery of your mail to them (which I don't consider to be a huge loss :-)). It also doesn't care who tries to deliver it to you - the result is the same - it bounces. Ruleset 98, by virtue of having all the sendmail macros available, can be used for other more complex matching - another useful rule might, for example, be .. Rsftcell < @ $+ > $#error $@ 5.1.4 $: "We dont accept junk mail, go away" .. which bounces any mail from or to 'sftcell@any.domain.you.like', Hope this helps, michael
Technical Details
Message-ID:
<4vr257$qfk@asstdc.scgt.oz.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4vj6cq$aql@grivel.une.edu.au> <4vlpd1$9l2@godzilla.zeta.org.au> <richard.840882102@bofh>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1090e7,21431b5a277d25c6 X-Google-Attributes: gid1090e7,public From: imb@walkabout.asstdc.com.au (michael butler) Subject: Re: Moneyworld spams Date: 1996/08/26 Message-ID: <4vr257$qfk@asstdc.scgt.oz.au> X-Deja-AN: 176468927 references: <4vj6cq$aql@grivel.une.edu.au> <4vlpd1$9l2@godzilla.zeta.org.au> <richard.840882102@bofh> organization: Assorted C Software newsgroups: aus.net.mail