Filtering problem

Howard Robinson Howard at
Thu Nov 16 13:47:53 GMT 2006

Hello again - thanks for the replies so far.
Re the Non spam actions. The mailscanner book says that deliver is needed after striphtml. But that part of the rule is working anyway! It's stripping and delivery every thing that is not spam. It's the non default that does not appear to work. 
Re the recipient address.
That has been derived from the aliases list on my mailserver AFTER it has been scanned.
So if I was sending that mail off site that line would be on the receivers mailllog - wouldn't it? 
Or I have I got this wrong!
I added the line anyway but still not working.
Parts snipped to reduce size 

** snipped
> >
> > Allow Script Tags = %rules-dir%/script.rules
> > Non Spam Actions = %rules-dir%/striphtml.rules
> > note %rules-dir% = /etc/MailScanner/rules
> >
> > in /etc/MailScanner/rules/script.rules I have
> >
> > To:     hrobinson at    yes
> > To:     howard at       yes
..Note that the above address....

> > # I tried FromOrTo: on both these with no different result
> > FromOrTo:       default no
> >
> > in /etc/MailScanner/rules/striphtml.rules I have
> >
> > To:     hrobinson at deliver
> > To:     howard at deliver
... as well as the one above here...

> > Nov 15 16:25:17 blackhole2 MailScanner[29444]: Message kAFGOisP029475 from VALIDIPADDRESS (hrobinson at to is not spam, .SpamAssassin (score=-2.53, required 5, autolearn=not spam, ALL_TRUSTED -3.30, BAYES_00 -0.05, HTML_80_90 0.15, HTML_MESSAGE 0.00, HTML_NONELEMENT_00_10 .0.00, NO_REAL_NAME 0.01, SUBJ_ALL_CAPS 0.67)
> > A few lines later
> > Nov 15 16:27:22 blackhole2 MailScanner[29444]: Content Checks: Detected and will convert HTML message to plain text in kAFGOisP029475
> > A few lines later
> > Nov 15 16:28:30 blackhole2 sendmail[30284]: kAFGOisP029475: to=howard at, delay=00:03:46, xdelay=00:00:00, mailer=esmtp, pri=125149, relay=VALIDRELAY. [VALIDIPADDRESS], dsn=2.0.0, stat=Sent (Ok)

.... don't match with the recipient (envelope) address here. So I'm
.guessing this is why you are seeing this behavior (just another case
.of it doing exactly what you tell it to do...:-)

> Howard
> I think the default action action on striphtml.rules is invalid. See the
> comments above the "Non Spam Actions" for valid actions
.Haven't looked, so this might be true too:-).
.But first see to it that  howard at and
.howard at match up better... Then look at Martins


Howard Robinson,
(Senior Technical Development Officer),
Harper Adams University College,
Shropshire ,
TF10 8NB.

Tel. Direct 01952 815253
Tel. Switch Board 01952 820280
Fax 01952 814783
Email hrobinson at

More information about the MailScanner mailing list