I'm not knowledgable about this, but that last bit doesn't quite make
sense to me... if spam is coming through your backup server, why do
want to trust your backup server? Don't you really mean check the IP
of the server your backup server got the message from?
I may have phrased it badly. My script is currently checking the IP address of
my backup MX server over and over again. I *want* it to check the IP of the
server my backup MX got the mail from.
Perhaps it would help if you post your recipe or some pseudocode of
what you're trying to do, along with sample message headers... that
recipe by itself doesn't look bad, but perhaps the CHECK variable
doesn't contain the Received header you're looking for, ie you need to
check the second or third Received header instead.
I've posted the entire script here: <http://www.unknown.nu/temp/spamblock.rc>.
It's basically a stripped-down copy of spambouncer which I've reworked to make
behave more like how I want. Scroll down to "# Get the IP" which is where the
RBL stuff starts.
Thanks to you and anyone else who cares to help. This script works great
except for this one thing which is driving me up the wall.
--
----------------------------------------------------------------------------
Kim Scarborough http://www.unknown.nu/kim/
----------------------------------------------------------------------------
"In a democracy, people get the kind of government they deserve."
- Adlai Stevenson
----------------------------------------------------------------------------
Now listening to: Sun Ra - "Sun Song"
----------------------------------------------------------------------------
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail