[Mimedefang] Using values in X- headers for filtering
Jim McCullars
jim at info.uah.edu
Wed Aug 20 16:01:02 EDT 2003
On Wed, 20 Aug 2003, Murray Hunter wrote:
> I have looked through the man pages and forum, but have not found how one
> can create a rule within MD to check the values of X- headers. I know I can
This is what I did in filter_begin:
if(open(HDR, "<HEADERS")) {
while (<HDR>) {
if(/^X-MailScanner.+clean/) {
close(HDR);
return action_bounce("This email exhibits characteristics of the SoBig virus - rejected");
}
}
close(HDR);
}
HTH...
Jim
More information about the MIMEDefang
mailing list