From owner-freebsd-questions@freebsd.org Sun Aug 25 14:09:46 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0700AE0930 for ; Sun, 25 Aug 2019 14:09:46 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46GcTN63lDz40bL for ; Sun, 25 Aug 2019 14:09:44 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pg1-x531.google.com with SMTP id x15so8785598pgg.8 for ; Sun, 25 Aug 2019 07:09:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=Yp2gtTtRwwG7BTOqbJaIzdr/EuciArUEgUuzBHzkxhA=; b=XGr/j9TCVL31GDErcqBontidYvOp3e+gNchZqZE80YTWS5nl+Qj50a7khA7xctMdzl SMFbVFQY3BFIJaRNWZj0I1fi0PZdKQuSQrrGaYyiNYq46l9OwwiQbwdAXOaoE/XvkAcm uLWeearbt4ZznUlRnaSTw1i+oPAp0WyUopg0G0DoWpMPZyDJ/MBKVLhofoI1ixMoir0d bpNa8IrMYTNA0dqXm+xvEqmWWZl1RD9JYnkLpmVE2beZZ875p/C+hYPBoPm4WZl7VeI8 05fCPc543/KhJrz4zGvAs2f/3qWuZPEWZ70HQcl+lBq9df/2xVc1TrR5dvCuoAElU3hI tG0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Yp2gtTtRwwG7BTOqbJaIzdr/EuciArUEgUuzBHzkxhA=; b=o+hDZcLiXyuqpbRJtkKkOSUQU6ujWNOisxMi6YOPPmx93tbr3nT29tzMSUz6AzW0l5 8FMXR5pR40Jj9SjU9uR557gjgA1X+Ls08xM3KDhwKj+aHSOcSTxTVPshsJbE+UxaFkF1 nM3g9Rk0MiDQ4MqqInmi6cKcc5us6hc0xt0t9MoPDDc8rk0XrLVJB5oiqPI7ArItE+XM l/TKTYaHg8eOSaXZOFRYYYjeBBp/XNaT+s6tzNtfkyMwaRP5VO1s37R5ksudwcIBfacJ g/kva3KS2X9QITOvUBfUIkCLqHwg5BObA7aHT1JgoAfAh7bSA5t72DeoLQPdzPvzZBXx KA/w== X-Gm-Message-State: APjAAAX004KJfGpgCD9xWwADiTCfiinHJ+CqGaWxe7uEG/Ifk/qunvp6 dFoInYf7ZcEvS/Xi5IrUP6/3Sypz X-Google-Smtp-Source: APXvYqzVP5DoJYSAwtEua7lgn9oZ6XjhlFnDQwvRStwDC5qgDDfJZ86ZV9ecz8l1ykI9ixp1oSB/Ig== X-Received: by 2002:a65:430b:: with SMTP id j11mr2012483pgq.383.1566742182544; Sun, 25 Aug 2019 07:09:42 -0700 (PDT) Received: from [192.168.1.10] (C-59-101-30-221.hay.connect.net.au. [59.101.30.221]) by smtp.gmail.com with ESMTPSA id r12sm9721763pgb.73.2019.08.25.07.09.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Aug 2019 07:09:42 -0700 (PDT) Subject: Re: openwebmail broke with latest update To: William Dudley , freebsd-questions References: From: MJ Message-ID: Date: Mon, 26 Aug 2019 00:09:11 +1000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46GcTN63lDz40bL X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=XGr/j9TC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::531 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.996,0]; FREEMAIL_TO(0.00)[gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[221.30.101.59.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.26), ipnet: 2607:f8b0::/32(-2.87), asn: 15169(-2.34), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Aug 2019 14:09:46 -0000 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 (openwebmail.pl) 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! :-) Cheers, Mark