High scoring spam rules file

mailinglist mailinglist at asyouneed.com
Mon Sep 17 16:02:53 IST 2007


Not sure if this is right but I noticed in the log it was complaining about
high.spam.rules appearing to be a rules file and needing renaming to .rule
or .rules. Odd I thought so I renamed to highspam.rules and it is now
working.

Also I removed the FromOrTo: for the default and changed it to just To:

One of these actions appears to have fixed it.

Thanks all.

Dee

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of
Martin.Hepworth
Sent: 17 September 2007 15:47
To: MailScanner discussion
Subject: RE: High scoring spam rules file

Dee

Make sure that the actual recipient (envelope-to) is somedomain.com


If its to multiple recipients only the first will take effect unless you do
something clever like split out to individual recipients at the MTA as
described in the wiki.

--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300

> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-
> bounces at lists.mailscanner.info] On Behalf Of mailinglist
> Sent: 17 September 2007 15:38
> To: MailScanner discussion
> Subject: RE: High scoring spam rules file
>
> Couldn't see the wood for the trees there, however I've checked config and
> it has the colons after the "To"s.
>
> Also just rebooted the whole server to make sure it's loading new config
> but
> still nothing, mail is marked as {Spam?} and delivered.
>
> Dee
>
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Anthony
> Peacock
> Sent: 17 September 2007 14:59
> To: MailScanner discussion
> Subject: Re: High scoring spam rules file
>
> Hi,
>
> mailinglist wrote:
> > Shouldn't be a typo there I still can't see it if there is.
>
> Did you cut&paste the example configuration lines or retype them?
>
> If you cut&pasted them, then you are missing two colons (:) after the
> "To"s.
>
>
> >
> > Yes I restarted Mailscanner after this but no joy.
> >
> > Dee
> >
> > -----Original Message-----
> > From: mailscanner-bounces at lists.mailscanner.info
> > [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of
> > Martin.Hepworth
> > Sent: 17 September 2007 14:35
> > To: MailScanner discussion
> > Subject: RE: High scoring spam rules file
> >
> > Assumee there's a deliberate typo there..
> >
> > To:   somedomain.com	delete
> > To:   other.domain.com	delete
> > FromOrTo:   default  deliver header "X-Spam-Status: Yes"
> >
> > And you restarted mailscanner after this change?
> >
> > --
> > Martin Hepworth
> > Snr Systems Administrator
> > Solid State Logic
> > Tel: +44 (0)1865 842300
> >
> >> -----Original Message-----
> >> From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-
> >> bounces at lists.mailscanner.info] On Behalf Of mailinglist
> >> Sent: 17 September 2007 14:28
> >> To: MailScanner discussion
> >> Subject: High scoring spam rules file
> >>
> >> Hi All,
> >>
> >>
> >>
> >>             I tried to do different things with high scoring spam
> >> depending on the domain it's sent to and have done the following.
> >>
> >>
> >>
> >> Created file called high.spam.rules in the mailscanner etc rules folder
> >>
> >>
> >>
> >> # Default Rules for high scoring spam.
> >>
> >> To                    somedomain.com         delete
> >>
> >> To                    other.domain.com         delete
> >>
> >> FromOrTo:       default                          deliver header "X-
> Spam-
> >> Status: Yes"
> >>
> >>
> >>
> >> Then edited Mailscanner.conf
> >>
> >>
> >>
> >> High Scoring Spam Actions = /opt/Mailscanner/etc/rules/high.spam.rules
> >>
> >>
> >>
> >> But it isn't deleting the high scoring junk any ideas?
> >>
> >>
> >>
> >> Dee
> >
> >
> >
> >
> >
> > **********************************************************************
> > Confidentiality : This e-mail and any attachments are intended for the
> > addressee only and may be confidential. If they come to you in error
> > you must take no action based on them, nor must you copy or show them
> > to anyone. Please advise the sender by replying to this e-mail
> > immediately and then delete the original from your computer.
> > Opinion : Any opinions expressed in this e-mail are entirely those of
> > the author and unless specifically stated to the contrary, are not
> > necessarily those of the author's employer.
> > Security Warning : Internet e-mail is not necessarily a secure
> > communications medium and can be subject to data corruption. We advise
> > that you consider this fact when e-mailing us.
> > Viruses : We have taken steps to ensure that this e-mail and any
> > attachments are free from known viruses but in keeping with good
> > computing practice, you should ensure that they are virus free.
> >
> > Red Lion 49 Ltd T/A Solid State Logic
> > Registered as a limited company in England and Wales
> > (Company No:5362730)
> > Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU,
> > United Kingdom
> > **********************************************************************
> >
>
>
> --
> Anthony Peacock
> CHIME, Royal Free & University College Medical School
> WWW:    http://www.chime.ucl.ac.uk/~rmhiajp/
> "A CAT scan should take less time than a PET scan.  For a CAT scan,
>   they're only looking for one thing, whereas a PET scan could result in
>   a lot of things."    - Carl Princi, 2002/07/19
> --
> 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!
>
> --
> 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!




**********************************************************************
Confidentiality : This e-mail and any attachments are intended for the 
addressee only and may be confidential. If they come to you in error 
you must take no action based on them, nor must you copy or show them 
to anyone. Please advise the sender by replying to this e-mail 
immediately and then delete the original from your computer.
Opinion : Any opinions expressed in this e-mail are entirely those of 
the author and unless specifically stated to the contrary, are not 
necessarily those of the author's employer.
Security Warning : Internet e-mail is not necessarily a secure 
communications medium and can be subject to data corruption. We advise 
that you consider this fact when e-mailing us. 
Viruses : We have taken steps to ensure that this e-mail and any 
attachments are free from known viruses but in keeping with good 
computing practice, you should ensure that they are virus free.

Red Lion 49 Ltd T/A Solid State Logic
Registered as a limited company in England and Wales 
(Company No:5362730)
Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
United Kingdom
**********************************************************************

-- 
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! 



More information about the MailScanner mailing list