10 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] filtering on "Receive...
FromSent OnAttachments
PollywogJul 17, 2004 12:10 pm 
Tony EarnshawJul 18, 2004 12:46 am 
PollywogJul 18, 2004 8:07 am 
PollywogJul 18, 2004 8:19 am 
PollywogJul 18, 2004 8:46 am 
Ron JohnsonJul 18, 2004 11:06 am 
PollywogJul 18, 2004 11:19 am 
ArneJul 19, 2004 3:04 am 
PollywogJul 19, 2004 8:16 am 
PollywogJul 19, 2004 8:21 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] filtering on "Received" headerActions...
From:Arne (asi@dds.nl)
Date:Jul 19, 2004 3:04:17 am
List:net.sourceforge.lists.courier-maildrop

On Sat, 17 Jul 2004, Pollywog wrote:

Some spammers are able to get through by using a mailhost which I do not control (it is a xecondary mx for my domain), so I want to have lists of "Received" headers and IP addresses which send me nothing but spam and have courier-maildrop use them. Is this possible?

You could use something like this:

foreach ( /^Received:.*/ ) { COUNT=$COUNT+1 if ($COUNT == 2) { ( $MATCH =~ /\[![0-9\.]+/ ) xfilter "reformail -A 'MX IP: $MATCH2'" } }

This example extracts the IP-address of the second `received' line - usually your backup mx.