openwebmail broke with latest update

MJ mafsys1234 at
Sun Aug 25 14:09:46 UTC 2019

Hello Bill,

On 25/08/2019 2:36 am, William Dudley wrote:
> Hi,
> Running 11.2-RELEASE-p11
> and also openwebmail-2.53_4
> All software is installed using pkg; I try to keep things mostly "stock" to
> make
> maintenence easy.  This is a mail and web server that I use to supply
> mailing
> lists to a bunch of non-profits
> I just did pkg upgrade to openwebmail (and a bunch of other things) and
> now openwebmail "fails" with the following message when I login to check
> my mail:
> Set effective gid to mail(6) failed!

-- DISCLAIMER - I don't use openwebmail and I'm a old user of Perl that stopped using it years
ago. --

I had a quick look in the code and where it could fail it suggests two things:

a) perl has no idea of setuid (I think that's a compile option?)

b) the script that runs ( is not setuid itself. That is, it should be permissions 4555 or 4755 or it's
not owned by root or running under the mail group.

But as you said you install from packages, I'd expect perl to be compiled with setuid (eg ENABLE_SUIDPERL=yes
used to be the setting when making from ports)

So my best guess would be permissions or ownership of the perl scripts?

If you do a search within /usr/local/www/apacheNN/cgi-bin/openwebmail (I'm guessing the path here), you might find
other references to your error:
cd /usr/local/www/apacheNN/cgi-bin/openwebmail
find . -type f -exec grep "Set effective gid to mail" {} \; -print

and see what turns up. There was another script with the same error when I checked it. Make sure that one also has
the correct permissions and ownership.

I hope this is more of a help than a hindrance! :-)


More information about the freebsd-questions mailing list