procmail
[Top] [All Lists]

Bouncing unwanted mail?

2000-08-28 09:33:21
Hey all.

I've got a setup here where my home server collects via fetchmail all mail for my domain from a POP account, then passes the mail to exim for delivery, which passes it to my username if it can't figure out what to do with it. I've got procmail (v3.13.1 1999/04/05) setup, and I thought I had a working solution, but I don't know for certain, as things would "slip through", and not get filtered.

My system's Debian Stable (potato), if that helps any.

I'm trying to implement selective bouncing, not selective delivery. That way I can create a new e-mail address (registering software, for instance) to track where I get spam, but since I do run my own domain, I have people for some reason using IT as their e-mail address, and I'd like to be able to bounce THOSE messages as if the user didn't exist.

Here's how I had it set up before:

:0c
* ^TO_12345(_at_)lore(_dot_)com
{
  EXITCODE=67
  HOST
}
:0:
* ^TO_12345(_at_)lore(_dot_)com
NobodyHome/12345\(_at_)lore(_dot_)com

Which bounced with EXITCODE 67, and saved a copy in a local mail box (just in case it was something that I'd created, and I'd forgotten).

I was trying to think of a more elegant way of doing this on the system level, but all I can see is selective delivery. I'd like something like a /etc/mail.bounce file, which is the same format as the /etc/aliases file, only the opposite, but if procmail'll do it, then that's OK too.

Thanks for any help!
Adam
Toronto, Ontario, Canada

Attachment: pgptK2xMRAeaa.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>