Because of the following part of /usr/bin/spamd... It tries to set the $dir variable to the virtual homedir, but it can't, so it sets $dir to an undefined value. Then comp and '.' (string concatenation) complain when they try to operate on an undefined value. You'll see these warnings since the first line of /usr/bin/spamd '#!/usr/bin/perl -T -w' says to show warnings.
# If vpopmail config enabled then set $dir to virtual homedir # if ( $opt{'vpopmail'} ) { my $vpopdir = $dir; $dir = `$vpopdir/bin/vuserinfo -d $username`; if ($? != 0) { # # If vuserinfo failed $username could be an alias # $dir = `$vpopdir/bin/valias $username`; if ($? == 0 && $dir !~ /.+ -> &/) { $dir =~ s,.+ -> (/.+)/Maildir/,$1,; } else { undef($dir); } } chomp($dir); } my $cf_file = $dir . "/.spamassassin/user_prefs"; On Friday 30 September 2005 03:59, Jimmy wrote: > Hello, > > I have recently upgraded using CPAN from Spam Assassin v3.0.4 to v3.1.0. > Since doing that I have been getting the following error message : > > Sep 29 14:56:12 HOST spamd[19995]: Use of uninitialized value in scalar > chomp at /usr/bin/spamd line 1762, <GEN5> line 2. > Sep 29 14:56:12 HOST spamd[19995]: Use of uninitialized value in > concatenation (.) or string at /usr/bin/spamd line 1764, <GEN5> line 2. > > I am running the following syntax > > /usr/bin/spamd -m 10 -v -u vpopmail -d --round-robin > > I am using vpopmail and running the service as vpopmail. I am piping the > email into spamc using the following syntax in my .qmail-default files. > > | spamc | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox > > Taking that on board here is my version output. > > spamd -V > SpamAssassin Server version 3.1.0 > running on Perl 5.8.6 > with SSL support (IO::Socket::SSL 0.97) > > > It all appears to run however I am am not realy sure about these error > messages. Any assistance would be greatly appreciated. > > Regards, > > Jimmy.