<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META content="MSHTML 5.50.4916.2300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=009080513-26062002><FONT face=Arial color=#0000ff
size=2>Nice!</FONT></SPAN></DIV>
<DIV><SPAN class=009080513-26062002><FONT face=Arial color=#0000ff size=2>In
your example, Is there any phrase, for instance "LOCAL" that should be repaced
with our domain name?</FONT></SPAN></DIV>
<DIV><SPAN class=009080513-26062002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=009080513-26062002><FONT face=Arial color=#0000ff size=2>When
you say your aliases some end in *-all., .. Does that mean this rule only
applies to certain aliases with *-all?</FONT></SPAN></DIV>
<DIV><SPAN class=009080513-26062002><FONT face=Arial color=#0000ff size=2>whats
the 0-9 for?</FONT></SPAN></DIV>
<DIV><SPAN class=009080513-26062002><FONT face=Arial color=#0000ff size=2>Is
this code supposed to be inserted into the sendmail.cf
file?</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Julian Field
[mailto:mailscanner@ECS.SOTON.AC.UK]<BR><B>Sent:</B> Wednesday, June 26, 2002
7:43 AM<BR><B>To:</B> MAILSCANNER@JISCMAIL.AC.UK<BR><B>Subject:</B> Re:
sendmail rules to protect internal aliases<BR><BR></FONT></DIV>At 00:36
26/06/2002, you wrote: <BR>>I hope one of you sendmail rule wizards can
help me with this... <BR><BR>OT. <BR><BR>>We have several "internal"
aliases that are really distribution list <BR>>-- including one alias that
goes to the whole company. Some <BR>>(stinking) spammer has harvested or
otherwise guessed what some of <BR>>these aliases are. Now we are getting
spam to the whole company <BR>>through one email address. <BR><BR>We have a
whole bunch of aliases ending in "-all" (and sub-aliases ending <BR>in
"-all-0" to "-all-9" which aren't accessible from the outside. As an
<BR>example, here's an extract from one of my sendmail.mc files. <BR><BR>#
This defines the regular expression that we will match against <BR>KIsEcsList2
regex -a@MATCH ^.*-all(-[0-9])?$ <BR><BR>LOCAL_RULESETS <BR>SLocal_check_rcpt
<BR>R$* $: $>3 $1 Focus on host <BR>R$* $: $>"QualifyDomain" $1 Make
fully-qualified <BR>R$* <@ $* $m. > $* $1 <@ *LOCAL* > Is
recipient an ECS address? <BR>R$* <@ *LOCAL* > $* $: $(IsEcsList2 $1 $)
<@ *LOCAL* > $2 ECS list? <BR>R@MATCH <@ *LOCAL* > $* $#error $@
5.1.2 $: Please contact ECS Help Desk <BR><BR># If address is unqualified, add
*LOCAL* as the destination hostname. <BR>SQualifyDomain <BR>R$* < @ $* >
$* $@ $1 < @ $2 > $3 Already fully qualified <BR>R$+ $@ $1 < @
*LOCAL* > Add local qualification <BR><BR>That should do the trick for you.
Don't forget to separate the fields of <BR>each line with tab characters, not
spaces. <BR>-- <BR>Julian Field Teaching Systems Manager
<BR>jkf@ecs.soton.ac.uk Dept. of Electronics & Computer Science <BR>Tel.
023 8059 2817 University of Southampton <BR>Southampton SO17 1BJ
<BR><BR></BLOCKQUOTE></BODY></HTML>