Package: minimalist
Version: 2.5.3-4
Severity: normal
Tags: patch

Hi

I occasionally see minimalist sending "Bad syntax or unknown instruction" mails 
to MAILER-DAEMON addresses. They are triggered by spam with such an address in 
the Reply-to: header.

The minimalist code checks for MAILER-DAEMON in From:, Sender: and X-Sender: 
headers, but misses Reply-to:. 

The attached patch fixes this.

Best regards
Tomaz

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages minimalist depends on:
ii  perl [perl5]                  5.10.0-19  Larry Wall's Practical Extraction 

minimalist recommends no packages.

minimalist suggests no packages.

-- no debconf information
--- minimalist-2.5.3.orig/minimalist.pl 2005-06-17 12:02:43.000000000 +0200
+++ minimalist-2.5.3/minimalist.pl      2009-07-29 18:29:20.000000000 +0200
@@ -307,7 +307,8 @@
 $from =~ s/\s+//gs; $from = lc($from);
 
 exit 0 if (($xsender eq $mesender) || ($from eq $mesender));   # LOOP detected
-exit 0 if (($from =~ /(MAILER-DAEMON|postmaster)@/i) ||                # -VTV-
+exit 0 if (($from =~ /(MAILER-DAEMON|postmaster)(@|$)/i) ||            # -VTV-
+          ($mailto =~ /(MAILER-DAEMON|postmaster)@/i) ||       # -Tomaz-
           ($sender =~ /(MAILER-DAEMON|postmaster)@/i) ||
           ($xsender =~ /(MAILER-DAEMON|postmaster)@/i));       # ignore 
messages from MAILER-DAEMON
 

Reply via email to