Skip to contentSkip to conversation

Please /dev/null html-only mail rather than sending it out on this list

DISCUSSION Whit Blauvelt 8 participants 13 messages Apr 18, 2004 – Apr 20, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

That a lot of spam has been coming through this list is one thing. That the list daemon threatens to cut people from the list whose systems refuse to accept some of the spam is another.

Might I suggest a simple category of stuff to throw out before forwarding to the list: HTML-only mail. 99%+ of it is spam, and the other <1% isn't the sort of people who have any interest in advanced file systems.

Two easy ways to block a lot of it:

1. With procmail:

# HTML only message are most probably spam.
:0
* ^Content-Type:.*text/html
{
LOG="(HTML) "
:0
/dev/null
}

2. With SpamAssassin by setting the score for MIME_HTML_ONLY high and then either /dev/null'ing or refusing to even accept such mail (providing you're running it as a milter). (Which is what I do and why the listserv is getting impatient with me.)

Other mail filtering methods will have equally easy ways to just toss this trash where it belongs.

Whit

#1 lore raw
Quoted 18 lines · Whit Blauvelt

Hi,

That a lot of spam has been coming through this list is one thing. That the list daemon threatens to cut people from the list whose systems refuse to accept some of the spam is another.

Might I suggest a simple category of stuff to throw out before forwarding to the list: HTML-only mail. 99%+ of it is spam, and the other <1% isn't the sort of people who have any interest in advanced file systems.

Two easy ways to block a lot of it:

1. With procmail:

# HTML only message are most probably spam.

:0

Quoted 8 lines

* ^Content-Type:.*text/html
{
LOG="(HTML) "

:0

/dev/null
}

Also, multipart mail that consists of an HTML part and no text part is *all* spam. (I have one sender that sends a legitimate HTML-only mail.) To get rid of this, use this procmail rule:

:0 B
* H ?? Content-Type: multipart
* Content-Type: text/html
* ! Content-Type: text/plain
* ! ^Received:
/dev/null
#The Received check is there because I am a postmaster.

Also block mail from IP addresses known to be open relays, open proxies, rooted boxes, etc.

phma

Signature · 1 line
li fi'u vu'u fi'u fi'u du li pa
#5 lore raw
In reply to Whit Blauvelt

I suspect this is the more general problem that SpamAssassin on Namesys needs to be updated, since a *lot* is getting through now.

Most servers get patches to fix security holes. SpamAssassin gets patches to spam holes. Both are annoying.

Signature · 4 lines
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \   (    |         [email protected]      PGP 8881EF59         |    )   /
  \_  \   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
    \___\_|_/82 04 A1 3C C7 B1 37 2A*E3 6E 84 DA 97 4C 40 E6\_|_/___/
#6 lore raw
Quoted 3 lines · The Amazing Dragon

Most servers get patches to fix security holes. SpamAssassin gets patches to spam holes. Both are annoying.

Or get DSPAM that the users train and the SysAdmin can got fix security holes ;^)

#2 lore raw
In reply to Pierre Abbat
Quoted 10 lines · Pierre Abbat
Quoted 2 lines · Whit Blauvelt

Hi,

:0 B
* H ?? Content-Type: multipart
* Content-Type: text/html
* ! Content-Type: text/plain
* ! ^Received:
/dev/null
#The Received check is there because I am a postmaster.

procmail is BAAAAD :)

we use a really small bit of shell instead

# we check if message was spoiled by spamassassin in previous
# round of spamcheck (qmailq).

preflag=printf "%s\n" "$input" | $M822FIELD X-Spam-Flag | sed 's/^ //' if [ "$preflag" = "YES" ]; then

# .. and if its spammy enough already, we reinject.
printf "%s\n" "$input" | $FORWARDBIN $FORWARD
  if [ $? -eq 0 ]; then
   #so qmail will not do any further deliveries in .qmail file
   exit 99
  fi
  # problem calling inject - temp failure
 exit 111
fi

#

i cant send HTML only to /dev/null cause Hans Reiser thinks ASCII (we are all using) is obsoleted by *ML's ;)

but we do a lil tweakig there and there, changing weights and writing new spamassassin rules.

for example for today spamassassin blocked 162 spam messages that were sent to this list ;)

well some got through. we are not perfect, but i'm working on it (being perfect)..

Quoted 2 lines

Also block mail from IP addresses known to be open relays, open proxies, rooted boxes, etc.

its intresting discussion, but lets move it off the list.

Signature · 2 lines
"the liberation loophole will make it clear.."
lex lyamin
#12 lore raw
In reply to Whit Blauvelt
Quoted 23 lines · Whit Blauvelt

Hi,

That a lot of spam has been coming through this list is one thing. That the list daemon threatens to cut people from the list whose systems refuse to accept some of the spam is another.

Might I suggest a simple category of stuff to throw out before forwarding to the list: HTML-only mail. 99%+ of it is spam, and the other <1% isn't the sort of people who have any interest in advanced file systems.

Two easy ways to block a lot of it:

1. With procmail:

# HTML only message are most probably spam.
:0
* ^Content-Type:.*text/html
{
LOG="(HTML) "
:0
/dev/null
}

Quoted 7 lines

2. With SpamAssassin by setting the score for MIME_HTML_ONLY high and then either /dev/null'ing or refusing to even accept such mail (providing you're running it as a milter). (Which is what I do and why the listserv is getting impatient with me.)

Other mail filtering methods will have equally easy ways to just toss this trash where it belongs.

you've being heard. its actually was done quite a time ago. but in a different way.

plus i simply cant junk 99% cause of purely administrative reasons (Hans loves the Markup Languages :)

but we do trash all sort of windows-os junk right away ;))))

Quoted 2 lines

Whit

Signature · 2 lines
"the liberation loophole will make it clear.."
lex lyamin
#7 lore raw
In reply to Hendrik Visage
Quoted 6 lines · Hendrik Visage
Quoted 3 lines · The Amazing Dragon

Most servers get patches to fix security holes. SpamAssassin gets patches to spam holes. Both are annoying.

Or get DSPAM that the users train and the SysAdmin can got fix security holes ;^)

oh... actually i found out that bayesian rules for spamassiasin is also whole lot of security grief.. and simply could be source of problem when someone does something simply stupid (not evil).

world isnt perfect.
but thats just yet... ;)

Signature · 2 lines
"the liberation loophole will make it clear.."
lex lyamin
#8 lore raw
Quoted 9 lines
Quoted 6 lines · The Amazing Dragon
Quoted 3 lines

Most servers get patches to fix security holes. SpamAssassin gets patches to spam holes. Both are annoying.

Or get DSPAM that the users train and the SysAdmin can got fix security holes ;^)

oh... actually i found out that bayesian rules for spamassiasin is also whole lot of security grief..

Huh? What specifically are you referring to here?

Quoted 2 lines

and simply could be source of problem when someone does something simply stupid (not evil).

Using SpamAssasin+custom rulesets (ask me if you want them) and then combined with Bayes, you'll eliminate close to 99% of the spam that hits the reiser mailing list..

Regards,
Cami

#3 lore raw
In reply to Alexander Lyamin
Quoted 30 lines · Alexander Lyamin
Quoted 10 lines · Pierre Abbat
Quoted 2 lines · Whit Blauvelt

Hi,

:0 B
* H ?? Content-Type: multipart
* Content-Type: text/html
* ! Content-Type: text/plain
* ! ^Received:
/dev/null
#The Received check is there because I am a postmaster.

procmail is BAAAAD :)

we use a really small bit of shell instead

# we check if message was spoiled by spamassassin in previous
# round of spamcheck (qmailq).

preflag=printf "%s\n" "$input" | $M822FIELD X-Spam-Flag | sed 's/^ //' if [ "$preflag" = "YES" ]; then

# .. and if its spammy enough already, we reinject.
printf "%s\n" "$input" | $FORWARDBIN $FORWARD
  if [ $? -eq 0 ]; then
   #so qmail will not do any further deliveries in .qmail file
   exit 99
  fi
  # problem calling inject - temp failure
 exit 111
fi
Quoted 5 lines

#

i cant send HTML only to /dev/null cause Hans Reiser thinks ASCII (we are all using) is obsoleted by *ML's ;)

More strong anti-spam rules for the mailing list may help. As an example rejecting HTML-only e-mails may be wrong for filtering private e-mail and good for the reiserfs-list.

Quoted 19 lines

but we do a lil tweakig there and there, changing weights and writing new spamassassin rules.

for example for today spamassassin blocked 162 spam messages that were sent to this list ;)

well some got through. we are not perfect, but i'm working on it (being perfect)..

Quoted 2 lines

Also block mail from IP addresses known to be open relays, open proxies, rooted boxes, etc.

its intresting discussion, but lets move it off the list.

Signature · 2 lines
"the liberation loophole will make it clear.."
lex lyamin
Signature · 1 line
Alex.
#4 lore raw
Quoted 4 lines · Alex Zarochentsev

More strong anti-spam rules for the mailing list may help. As an example rejecting HTML-only e-mails may be wrong for filtering private e-mail and good for the reiserfs-list.

yes. likely. but it wasnt liked by Hans...
oops.

Signature · 2 lines
"the liberation loophole will make it clear.."
lex lyamin
#9 lore raw
In reply to Cami
Quoted 5 lines · Cami
Quoted 5 lines
Quoted 5 lines · The Amazing Dragon
Quoted 3 lines

Most servers get patches to fix security holes. SpamAssassin gets patches to spam holes. Both are annoying.

Quoted 7 lines
Quoted 3 lines
Quoted 2 lines

Or get DSPAM that the users train and the SysAdmin can got fix security holes ;^)

Using SpamAssasin+custom rulesets (ask me if you want them) and then combined with Bayes, you'll eliminate close to 99% of the spam that hits the reiser mailing list..

its already eliminates 99.
without bayes.

160:2 ratio for today.

you see what passes through :)
i see what was stopped...

Signature · 2 lines
"the liberation loophole will make it clear.."
lex lyamin
#10 lore raw

Hello,

Maybe you should give a try at crm114 ( http://crm114.sf.net ) by Bill Yerazunis Ph.D

It's using Markovian filters instead of Bayesian ones and the homepage claims 1 spam out of 8738 messages (4240 spam, 4498 nonspam) which translates into an accurracy of 99.984%

One nice aspect is that it learns *fast*

Thanks,

Philippe

--

Philippe Gramoullé
[email protected]
Senior System and Network Architect
Lycos Europe

On Mon, 19 Apr 2004 17:37:32 +0400
Alexander Lyamin <[email protected]> wrote:

  | its already eliminates 99.
  | without bayes.
  | 
  | 160:2 ratio for today.
#11 lore raw
Quoted 6 lines · Philippe Gramoull?

Hello,

Maybe you should give a try at crm114 ( http://crm114.sf.net ) by Bill Yera= zunis Ph.D

Quoted 7 lines

It's using Markovian filters instead of Bayesian ones and the homepage clai= ms
1 spam out of 8738 messages (4240 spam, 4498 nonspam) which translates into=
an
accurracy of 99.984%

One nice aspect is that it learns *fast*

sound like pretty sharp accuracy.
i'll take a look :)

Signature · 2 lines
"the liberation loophole will make it clear.."
lex lyamin