I think I found the problem. The reported error: "amavis[]: Insecure directory in $ENV{PATH} while running with -T switch at /usr/lib/perl5/5.38.2/Net/Domain.pm line 173." is totally bogus and has nothing to do with the problem. It appears the hostname has to be a FQDN. Having hostname set to the host name and domainame set to the domain name is not adequate. When hostname is a FQDN amavisd starts without error. The same config with the hostname *not* being FQDN on my current postfix email server using amavisd also is and has been running that way since at least 2014 if not 2011. On 6/26/24 12:38, Curtis J Blank wrote:
I filed a bug report. Don't know what else to do.
On 6/26/24 10:56, Curtis J Blank wrote:
Thanks. I see that now. But what is the fix for this then to get amavisd running?
On 6/25/24 23:45, Andrei Borzenkov wrote:
On 26.06.2024 00:46, Curtis J Blank wrote:
Here's the PATH and each of directories in the PATH's permissions. I wonder if it choking on the permissions of the links?
No. It is not about the content of the $PATH, but about the fact that it is imported from the external environment.
bor@tw:~> PATH=/usr/bin perl -Te 'use Net::Domain; $foo = `domainname`' Insecure $ENV{PATH} while running with -T switch at -e line 1. bor@tw:~> perl -Te 'use Net::Domain; $ENV{PATH}="/usr/bin"; $foo = `domainname`' bor@tw:~>