sadly, one of our domains seems to have gotten onto one or more of those
"Buy * Million first class spam recipients' email addresses NOW" lists/CDs.
so we keep receiving mails from all over this lovely planet for the non
existent users
michellep tonyak jenniferd barbik melindaa gabriellej barbis doloresz
melindab junem
(exciting isn't it)
i would like to process them automatically via a .qmail* file, and one
thing i would like to extract automatically is the IP of the SMTP relay
that sent the mail to our server. example:
Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 28677 invoked by alias); 21 Sep 2000 01:26:51 -0000
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 28673 invoked from network); 21 Sep 2000 01:26:51 -0000
Received: from unknown (HELO srvweb.IMPI-GIPSI.FR) (194.206.111.65)
by 192.168.27.19 with SMTP; 21 Sep 2000 01:26:51 -0000
Received: from cs28100-41.houston.RR.COM by srvweb.IMPI-GIPSI.FR with SMTP
(Microsoft Exchange Internet Mail Service Version 5.0.1457.7)
id S52XFY3D; Thu, 21 Sep 2000 00:07:33 +0200
DATE: 20 Sep 00 5:08:51 PM
FROM: [EMAIL PROTECTED]
Message-ID: <TeK72wV57gK1zQ7474o>
SUBJECT: get shopping discounts, improve your quality of life
so i would like to extract 194.206.111.65 from the line
Received: from unknown (HELO srvweb.IMPI-GIPSI.FR) (194.206.111.65)
i am rather new at parsing ... and PERL? is that something you wear around
your neck?
sorry if you consider this off topic, it certainly is part of my life with
qmail *g*
cheers
wolfgang