procmail
[Top] [All Lists]

Re: Filtering Non-existant User Accounts

1998-09-03 22:35:21
How do you use procmail to filter all the spam which goes
to 'names' which do not exist?

You can't do it at the LDA stage.  There was a posting just a couple
of days ago on the spamtools list by Ron Guilmette about it though.
I'm blatantly reposting his message because he's a Swell Guy and won't
care:

   The basic prototype for this is probably already sitting in your
   sendmail.cf file, but commented out, as in:

   # place to which unknown users should be forwarded
   #Kuser user -m -a<>
   #DLname_of_luser_relay

   Unless I am mistaken, you should just be able to take the # out from
   in from of each of these two directives and then, in place of the
   part that says `name_of_luser_relay', put in some local userid, such
   as `gunk', and then all mail to unknown addresses on your system will
   be directed into the maildrop file /var/spool/mail/gunk.

   (This assumes that you have an entry for `gunk' in your /etc/passwd
   file.  Yes, it _does_ need to be a real account on your system, or at
   the very least must be listed in your /etc/aliases file.)

   -- Ron Guilmette, Roseville, California ---------- E-Scrub Technologies, Inc.
   -- Deadbolt(tm) Personal E-Mail Filter demo: http://www.e-scrub.com/deadbolt/
   -- Wpoison (web harvester poisoning) - demo: http://www.e-scrub.com/wpoison/

So redirect it all to an alias/account, then procmail away.

Chris