FreshPorts -- The Place For Ports notbugIf you buy from Amazon USA, please support us by using this link.
Follow us

Help with ports
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
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/ :

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
 Re: amavisd-new
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/ If you *really* want to start it manually, you have to provide the "-u vscan" option.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2018 Dan Langille. All rights reserved.