[EMAIL PROTECTED] wrote:
On Wed, 18 Jan 2006, Bryan Scott wrote:

Is anyone here blocking messages without message-ids? How's it working
for you?

It's working great for me. But I haven't checked in a long time just how
well. Last I checked (over a year ago) it stopped about 40% of my spam.

Got a plugin for that? :)

I don't as it's part of a larger anti-spam system. But it's basically as
easy as a wrapper around this function:

sub check_no_msgid {
my ($self, $transaction) = @_;
# Message-I[dD] ucase happens

### my $msg_id = $transaction->header->get('Message-Id');
### if (!defined($msg_id)) {

unless ( $transaction->header->get('Message-Id') ||
 $transaction->header->get('Message-ID') ) {

#
$self->log(1, "No Message-Id header");
# Could be broken mailer - check for those...
my $mailer = $transaction->header->get('X-Mailer') || '';
if ($mailer =~ /XFMail.{2,20}on Linux/) {
return 0;
}
if ($mailer =~ /org.apache.tools.mail.MailMessage/) {
return 0;
}
if ($mailer =~ /Microsoft Office Outlook/) {
return 0;
}
if ($transaction->header->get('Resent-Message-Id')) {
return 0;
}
return 1 if $transaction->header->get('Content-Type');
}
return 0;
}

Reply via email to