Date: Mon, 10 Nov 2014 06:43:47 -0500 From: Jerry <jerry@seibercom.net> To: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: postfix catch-22... Message-ID: <20141110064347.46c3080a@scorpio> In-Reply-To: <54608CF8.4000301@freebsd.org> References: <54608CF8.4000301@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/WgbZoAkxNqbb98C4kFkDlf_ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 10 Nov 2014 10:01:28 +0000, Matthew Seaman stated: >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&r= 2=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 > mail_version =3D 2.12-20141020 reported error with file permissions also; although it did start. --=20 Jerry --Sig_/WgbZoAkxNqbb98C4kFkDlf_ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJUYKT5AAoJEElTsHIJnX8eZ4QH/17SdWgZniIaBhmew5gFKVve h1Q3Hi0R1NCnng6LuQ/rWzvVRVr/qtJl6tKKW5r8kKcRU7d7dWirujjTE7dT73/S +xzaRHOKrHLRB3c29aeDw3E3nQwP6EhbQZ/Cud3Hu3Qk5b9rkh4p6OlMApe0mnld f7katnHegOg9q5ZHrjBMx86wdN6WtmAjs3WjWt9ljCsGtNeA5bFAKevTmoL4SaU/ TOs0o2vmGKOffIFl0YUJ3L6jmZpol3i0F5XvnUkMseWCjwYsc66dNF4o5E2XaRun 3SlCSi2IGR6GAJ1dehXrmXOwFNWs5ZRJWOe9ln1KVpqADWbdGnMEwKpI1RwHWlg= =AFux -----END PGP SIGNATURE----- --Sig_/WgbZoAkxNqbb98C4kFkDlf_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141110064347.46c3080a>