On Tue, Feb 12, 2008 at 10:47:28PM +0000, Jim Murray wrote:
> Can anyone shed some light on what might be causing this?
> 
> @4000000047b212e52378779c Use of uninitialized value in pattern match 
> (m//) at ./plugins/greylisting line 209, <STDIN> line 3.
> 
> I'm running QPSMTPD 0.40 release, no tweaks and straight qpsmtpd, not 
> -forkserver or any of the other variants.
> 
> Any clues would be helpful, I'm not certain if this is causing lost mail 
> or not - it's too early to tell. I really don't want to disable 
> greylisting, it's far too effective against spam but I'll have to if I 
> can't figure out what this is (or at least be assured it's harmless).


It's an undefined variable, probably harmless. Does the following fix it?


--- plugins/greylisting.dist    2008-02-13 15:01:48.000000000 +1100
+++ plugins/greylisting 2008-02-13 15:02:11.000000000 +1100
@@ -206,7 +206,7 @@
   return DECLINED if $self->qp->connection->notes('whitelisthost');
   return DECLINED if $transaction->notes('whitelistsender');
 
-  if ($config->{db_dir} =~ m{^([-a-zA-Z0-9./_]+)$}) {
+  if ($config->{db_dir} && $config->{db_dir} =~ m{^([-a-zA-Z0-9./_]+)$}) {
     $config->{db_dir} = $1; 
   }
 

Cheers,
Gavin

Reply via email to