On Mon, Feb 17, 2003 at 08:59:33PM +0000, Martin Radford wrote:
> I realise this is more a sendmail question than a spamassassin one,
> but I guess someone might already have done this: is it possible to
> get sendmail to accept mails sent to non-existent addresses so they
> can be collected as "known spam"?  I'm running Sendmail 8.9.3 (Red Hat
> 6.1).

Well, I wouldn't assume any mail to non-existent addresses is spam.
I sometimes wonder how many mails people send me to 'kludge.net'...

I use the following to generate my spamtraps (this may not be good for
you; I only have 10 users...):

#!/bin/sh
grep -i '\.\.\. user unknown' | awk '{print $7}' | sed -e 's/^<//' -e 's/@.*$/: 
spamtrap/' | tr '[A-Z]' '[a-z]'

It goes through my mail log, finds the 'user unknown' errors, and
generates a spamtrap alias for them.  I then go through them by hand,
removing obvious msgids, etc, and put the rest in the alias file.
Over 3800 at the moment, and adding ~200 a week. :)

-- 
Randomly Generated Tagline:
"When someone asks you, 'A penny for your thoughts,'
 and you put your two cents in, what happens to the other penny?" - Unknown

Attachment: msg12479/pgp00000.pgp
Description: PGP signature

Reply via email to