Hello all,
I just installed procmail on our server. I have been playing around with some
recipies and have most of what I needed to get filtered, except for this one
thing where I keep banging my head against the wall. It is quite possible that
I am expecting too much.
Here is the background:
We have a script that runs on the site for classified ads. When a user puts up
a classified ad we hide the email address with a "reply to ad" link that takes
them to a webpage that has a form. Persons interested in replying to the
classified click on that link, place the email in the email box and their
message in the message box and hit submit. When they hit submit the cgi checks
to make sure it is a valid email address, passes it on to our sendmail which
sends it out to the user (which may or maynot have a local account).
The headers look like this:
Return-Path: <hypersol>
Received: (from hypersol(_at_)localhost)
by hypermedia-e-solutions.com (8.11.6/8.11.6) id g7NMGew71637;
Fri, 23 Aug 2002 16:16:40 -0600 (MDT)
Date: Fri, 23 Aug 2002 16:16:40 -0600 (MDT)
Message-Id:
<200208232216(_dot_)g7NMGew71637(_at_)hypermedia-e-solutions(_dot_)com>
To: chris(_at_)whatever(_dot_)com
From: samson_mother4727(_at_)yahoo(_dot_)com
Subject: Reply To Your Ad
X-UIDL: (!D"!F3_"!/pD"!&>(!!
I am trying to filter all mail that has samson_mother4727(_at_)yahoo(_dot_)com
in the From: header to /var/log/procmail.log.samson
My recipie looks like this
LOGFILE=/var/log/procmail.log.samson
## this will catch the samson and his mother spam
:0B:
* ? /usr/local/bin/formail -x"From" -x"From:" -x"Sender:" -x"Reply-To:"
-x"Return-Path:" | /bin/egrep -is samson_mother2747(_at_)yahoo(_dot_)com
/var/log/samson
This is, of course, not working. It is filtering all messages out. I have
tried various alternatives, but quite frankly am at a loss four hours later.
I would appreciate any help.
Thanks
Chris