<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I cannot reproduce your problem with `cpan` alone, but one can
      get such "Permission denied" errors, when the path towards an @INC
      entry cannot be traversed at some point.<br>
      <blockquote type="cite">root@edbfe5cd3d75:~# mkdir -p
        /usr/local/lib/site_perl/Foo && chmod o-rwx
        /usr/local/lib/site_perl<br>
        root@edbfe5cd3d75:~# echo 1 >
        /usr/local/lib/site_perl/Foo/Bar.pm<br>
        root@edbfe5cd3d75:~# perl -MFoo::Bar -e1 <br>
        root@edbfe5cd3d75:~# su - amavis -c 'perl -MFoo::Bar -e1'<br>
        Can't locate Foo/Bar.pm:   /usr/local/lib/site_perl/Foo/Bar.pm:
        Permission denied.<br>
        BEGIN failed--compilation aborted.<br>
      </blockquote>
      So it does not need to be related to the Amavis namespace.<br>
    </p>
  </body>
</html>