On Thu, Sep 07, 2017 at 08:54:48PM +0000, Fazzina, Angelo wrote:
> postfix/postfix-script[3214]: starting the Postfix mail system
> postfix/master[3215]: fatal: open lock file /var/lib/postfix/master.lock:
> cannot open file: Permission denied
> [root@mail2 postfix]# ls -l /var/lib/postfix/
> total 0
> -rw-r--r--. 1 postfix postfix 0 Sep 7 16:07 master.lock
On my system the lock file mode is 0600, but otherwise looks
normal.
> data_directory = /var/lib/postfix
> mail_owner = postfix
What about the directory permissions? Run as root and post the
output of:
# bash -c "ls -ld /var{,/lib{,/postfix{,/master.lock}}}"
To fix (if not on a system where the package maintainer provides
an incorrect postfix-files file).
# postfix set-permissions
Otherwise, fix by hand as needed. On my (BSD) system, the data
directory hierarchy permissions are:
# bash -c "ls -ld /var{,/db{,/postfix{,/master.lock}}}"
drwxr-xr-x 26 root wheel 26 Aug 14 12:12 /var
drwxr-xr-x 16 root wheel 23 Sep 7 17:12 /var/db
drwx------ 2 postfix wheel 4 Feb 18 2017 /var/db/postfix
-rw------- 1 postfix wheel 33 Aug 14 12:12 /var/db/postfix/master.lock
On Thu, Sep 07, 2017 at 11:02:18PM +0200, Patrick Ben Koetter wrote:
> You have a zombie master process hanging around. Stop postfix. Get a list of
> all running processes and check if there's a orphaned master process hanging
> around. Kill it. Start postfix.
That does not match "permission denied", you'd be told the lock is
already taken instead.
--
Viktor.