|
Author: frank
Date: 16-09-04 06:53
The latest amavisd-new have problem with the Net::Server where it will log a warning: Net::Server: ... "Couldn't become uid ..., "or": Effective UID changed, but Real UID is 0: Couldn't become uid ..." which is due to the difference of set UID in different platform.
the main website of amavisd-new suggest "Here is a replacement subroutine set_uid in file ...lib/perl5/...Net/Server/Daemonize.pm :
sub set_uid {
my $uid = get_uid( shift() );
POSIX::setuid( $uid ) or die "Couldn't POSIX::setuid to \"$uid\" [$!]\n";
$> = $uid; $< = $uid; # just in case
return 1;
}
"
but we need to manually edit this file making using FreeBSD ports difficult. Can the port maintainer modify the port so that it will patch the Net::Server automatically ?
|
|
Reply To This Message
|
|
Author: Blaz Zupan
Date: 16-09-04 11:35
How are you starting amavisd? Don't run it manually, use the provided startup script in /usr/local/etc/rc.d/amavisd.sh. If you *really* want to start it manually, you have to provide the "-u vscan" option.
|
|
Reply To This Message
|
|