sendmail change

John Rudd jrudd at UCSC.EDU
Fri Aug 22 22:49:55 IST 2003


John Rudd wrote:
>

>
> # Reject all mail with Sobig subjects.
> HSubject:               $>Check_subject
> D{Msobig1}Re: That movie
> D{Msobig2}Re: Wicked screensaver
> D{Msobig3}Re: Your application
> D{Msobig4}Re: Approved
> D{Msobig5}Re: Re: My details
> D{Msobig6}Re: Details
> D{Msobig7}Your details
> D{Msobig8}Thank you!
> D{Mmsg} Possible Sobig-F - Please change subject:
>
> SCheck_subject
> R${Msobig1} $*          $#error $: 550 ${Mmsg}
> R${Msobig2} $*          $#error $: 550 ${Mmsg}
> R${Msobig3} $*          $#error $: 550 ${Mmsg}
> R${Msobig4} $*          $#error $: 550 ${Mmsg}
> R${Msobig5} $*          $#error $: 550 ${Mmsg}
> R${Msobig6} $*          $#error $: 550 ${Mmsg}
> R${Msobig7} $*          $#error $: 550 ${Mmsg}
> R${Msobig8} $*          $#error $: 550 ${Mmsg}
>


Since I tend to work more in the mc file than the cf file, I had
forgotten something about this method that doesn't work.  Here's what
you need to use instead:


# Reject all mail with Sobig subjects.
HSubject:               $>Check_subject
D{Msobig1}That
D{Msobig2}Wicked
D{Msobig3}Your
D{Msobig4}Approved
D{Msobig5}My
D{Msobig6}Details
D{Msobig7}Thank


SCheck_subject
R${Msobig1} $*          $#error $: 550 ${Mmsg}
RRE: ${Msobig1} $*      $#error $: 550 ${Mmsg}
R${Msobig2} $*          $#error $: 550 ${Mmsg}
RRE: ${Msobig2} $*      $#error $: 550 ${Mmsg}
R${Msobig3} $*          $#error $: 550 ${Mmsg}
RRE: ${Msobig3} $*      $#error $: 550 ${Mmsg}
R${Msobig4} $*          $#error $: 550 ${Mmsg}
RRE: ${Msobig4} $*      $#error $: 550 ${Mmsg}
R${Msobig5} $*          $#error $: 550 ${Mmsg}
RRE: ${Msobig5} $*      $#error $: 550 ${Mmsg}
R${Msobig6} $*          $#error $: 550 ${Mmsg}
RRE: ${Msobig6} $*      $#error $: 550 ${Mmsg}
R${Msobig7} $*          $#error $: 550 ${Mmsg}
RRE: ${Msobig7} $*      $#error $: 550 ${Mmsg}



Basically, you can't have multiple words in the patterns I'm using, so
it was blocking all messages that started "Re:".  This new mechanism
blocks only those words I listed above, with or without a leading "Re:
".  That's going to be rather broad, you think about whether or not you
really want to do that.  But it does seem to work.



More information about the MailScanner mailing list