From owner-freebsd-ports@FreeBSD.ORG Mon Nov 10 10:01:54 2014 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0A0B0D13; Mon, 10 Nov 2014 10:01:54 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9DF80B02; Mon, 10 Nov 2014 10:01:53 +0000 (UTC) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.9/8.14.9) with ESMTP id sAAA1bSw065198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 10 Nov 2014 10:01:43 GMT (envelope-from matthew@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk sAAA1bSw065198 Authentication-Results: smtp.infracaninophile.co.uk/sAAA1bSw065198; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Message-ID: <54608CF8.4000301@freebsd.org> Date: Mon, 10 Nov 2014 10:01:28 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: sahil@FreeBSD.org Subject: postfix catch-22... Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tV0vg6LmjEEaxnpc0FDjviSmlCnvOJvnT" X-Virus-Scanned: clamav-milter 0.98.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2014 10:01:54 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tV0vg6LmjEEaxnpc0FDjviSmlCnvOJvnT Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dear maintainer, Had an issue with updating from 2.11.1_4,1 to 2.11.3_1,1: it looks like you can't win with the ownership of /var/spool/postfix: On restart after updating the package: {{{ smtp-2:/var/spool/postfix:# service postfix restart postfix/postfix-script: stopping the Postfix mail system postsuper: fatal: scan_dir_push: open directory defer: Permission denied postfix/postfix-script: fatal: Postfix integrity check failed! }}} Googling shows this to be a problem with the ownership of /var/spool/postfix. One 'chown postfix /var/spool/postfix' later, and postfix will now at least start, but it clearly isn't happy about it. {{{ smtp-2:/var/spool/postfix:# chown postfix . smtp-2:/var/spool/postfix:# service postfix restart postfix/postfix-script: fatal: the Postfix mail system is not running postfix/postfix-script: warning: not owned by root: /var/spool/postfix postfix/postfix-script: starting the Postfix mail system }}} {{{ smtp-2:/var/spool/postfix:# postfix check postfix/postfix-script: warning: not owned by root: /var/spool/postfix smtp-2:/var/spool/postfix:# ls -ld /var/spool/postfix drwx------ 16 postfix postfix 16 Nov 10 00:27 /var/spool/postfix/ }}} It seems from the pkg-plist that postfix:postfix and 0700 are the intended ownership and permissions: https://svnweb.freebsd.org/ports/head/mail/postfix/pkg-plist?r1=3D372370&= r2=3D372369&pathrev=3D372370 However updating via pkg(8) didn't seem to pick up the ownership change on /var/spool/postfix -- it got the chmod to 0700 though. pkg(8) not behaving quite right aside, I'm not convinced that postfix:postfix and 0700 is correct for /var/spool/postfix -- it used to be root:postfix and move 0755, which seems to allow postfix to run without complaint: {{{ smtp-2:/var/spool/postfix:# chmod 755 . smtp-2:/var/spool/postfix:# chown root . smtp-2:/var/spool/postfix:# postfix check smtp-2:/var/spool/postfix:# service postfix restart postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system }}} Cheers, Matthew --tV0vg6LmjEEaxnpc0FDjviSmlCnvOJvnT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJUYI0BXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnbKEP/Az441q/3pCaKyD48TR+7jID wZhf2MiyscXIMfdOIrATd7IdMyDMTorLKmUtQqoO9Ufdp3Jc0Jum1Armxcbv5wCh J3RS7jdP8gxHL4gL4bsBaxMFXadY6B4+O7yikw+J64NrhKaKaydKFxBFdmtWpIkr jNSvWppC4kXu8U+Mf2Kh4xviYPMtXHjRTg/2pxDDbMczV4GGC51MjIXQIR0f6w34 VGlxpS+Y0M9HHmpEZqk5UmvcSbiHysvpYRGdEVecFGSYIl3brSznNKyZtzDfEJsy cTmGRVy8I1rXn3Xj/WEV8bVyxGuZc8k75x9LU5vdDTYRwL9U+mhMOvXGmsSr27Gg +ICJD1T/3Kl18it71F4/7ze4I8dMoaJsYtude+aK430AwIm2yCaK+b6vs2b9vf5A /MoZrzqCMUklXy8EJPodvLPG5WM6fifYrXNeqkRJ5JeILGYrC5WZvkfYGpRRBXx/ TwCXzdhs/30STDNGYziWJ0BG+dUG8zo4rPcsA6tkw50i+e5Lpqs1tqrgz3q50UeY ePaqFk/OStse2egj5rP+NUz9XLRmZ38tu5R4daxQtyUPmj3zMFATmKDsrrX5pcQ+ a2joziXG+oMOH0yNbqPSHQ0mj3Wgua9dWUC7AA5V4NvSGdf/fugao7R+NY6KS30o QZvqudB9vZdi4AMyNPkV =INM/ -----END PGP SIGNATURE----- --tV0vg6LmjEEaxnpc0FDjviSmlCnvOJvnT--