Recipient Limitation(s)

shprahi shprahi shprahi at gmail.com
Tue Aug 18 07:57:40 IST 2009


In my opinion do not give load to Mailscanner for these kind of activity,Use
some policyd kind of throttling.....

On Sun, Jul 26, 2009 at 11:24 PM, Mark Sapiro <mark at msapiro.net> wrote:

> On Sat, Jul 25, 2009 at 04:56:37PM +0100, Steve Freegard wrote:
> >
> > These rules could also be simplified considerably and reduce their
> > overhead by better regexp (using capturing parenthesis in SA simply
> > wastes memory) so:
> >
> > header COUNT_TO  To =~ /(?:\S+@\S+)/
> > tflags COUNT_TO multiple
> > score  COUNT_TO 0.1
> >
> > header COUNT_CC  Cc =~ /(?:\S+@\S+)/
> > tflags COUNT_CC multiple
> > score  COUNT_CC 0.1
> >
> > These would add 0.1 for every e-mail address in the To and Cc headers;
> > to 20 recipients would add 2 to the computed score.
>
>
> Actually, I think the above regexps would better be something like
>
> header COUNT_TO  To =~ /(?:[^@,\s]+@[^@,\s]+)/
> header COUNT_CC  Cc =~ /(?:[^@,\s]+@[^@,\s]+)/
>
> Otherwise they match the whole header value in something like
>
> To: <user1 at example.com>,<user2 at example.com>
>
> --
> Mark Sapiro mark at msapiro net       The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20090818/aa620e48/attachment.html


More information about the MailScanner mailing list