Matt Kettler wrote:

>Philip Prindeville wrote:
>  
>
>>There's no way to whitelist just the empty address then?  Rather than
>>everything?
>>
>>-Philip
>>
>>  
>>    
>>
>Not given the simple file-glob format of the whitelist commands. You'd
>need a regular expression and negation.
>
>You could do it with a rule...
>
>header __NULL_RETURN   From !~   /./i
>header __RCVD_MYHOST   Received =~ /<insert Received header regex
>matching your servers exchanging..>/
>meta MY_NULL_RETURN   (__NULL_RETURN && __RCVD_MYHOST)
>
>
>  
>

It's not the From, but rather the EnvelopeFrom.

--- Mail/SpamAssassin/Conf/Parser.pm.bak        2006-08-29 09:16:46.000000000 
-0600
+++ Mail/SpamAssassin/Conf/Parser.pm    2006-10-19 20:44:18.000000000 -0600
@@ -631,6 +631,10 @@
   unless (defined $value && $value !~ /^$/) {
     return $Mail::SpamAssassin::Conf::MISSING_REQUIRED_VALUE;
   }
+  # email from postmaster, abuse autoresponders, etc.
+  if ($value eq '<>') {
+    return $conf->{parser}->add_to_addrlist ($key, '');
+  }
   $conf->{parser}->add_to_addrlist ($key, split (' ', $value));
 }


I tried the above fix, but it didn't work.

Not sure why...

-Philip



Reply via email to