I do run spamd as a spamd user with a flag --vpopmail $ ~vpopmail/bin/vuserinfo postmas...@xxx.xxx Error: unable to setuid $
I even tried with following, still same thing.... $ chmod u+s vuserinfo $ ls -ld ~vpopmail/bin/vuserinfo -rws--x--x 1 vpopmail vchkpw 225377 Mar 25 01:15 /home/vpopmail/bin/vuserinfo $ On Wed, Apr 8, 2009 at 12:50 AM, Matt Kettler <mkettler...@verizon.net> wrote: > alexus wrote: >> I keep getting this line in my logs everytime there is a spamd calles >> >> Apr 8 03:55:15 mx1 spamd[36109]: Use of uninitialized value $dir in >> scalar chomp at /usr/local/bin/spamd line 2118, <GEN103> line 2. >> >> i dont suppose this is normal >> > Are you using the -v parameter when you start spamd, but are passing a > username that's not a vpopmail user with working vuserinfo? > > > Code: > --------------------- > if ( $opt{'vpopmail'} ) { > my $vpopdir = $dir; > $dir = `$vpopdir/bin/vuserinfo -d \Q$username\E`; > if ($? != 0) { > # > # If vuserinfo failed $username could be an alias > # > $dir = `$vpopdir/bin/valias \Q$username\E`; > if ($? == 0 && $dir !~ /.+ -> &/) { > $dir =~ s,.+ -> (/.+)/Maildir/,$1,; > } else { > undef($dir); > } > } > chomp($dir); > } > ---------------------- > > > > -- http://alexus.org/