#622771 postfix check does not catch possible startup error regarding master.lock

Package:
postfix
Source:
postfix
Description:
High-performance mail transport agent
Submitter:
"Raoul Bhatia [IPAX]"
Date:
2024-12-16 16:15:02 UTC
Severity:
normal
Tags:
#622771#5
Date:
2011-04-14 14:41:36 UTC
From:
To:
postfix check does not catch a possible startup error regarding wrong
queue_directory permissions:

/data/mail/conf essentially is a copy of /etc/postfix using different
directories for spool, etc. (postconf output is attached.)


i check the config via the postfix binary:

everything looks fine. now i start postfix:

postfix tells me that it is starting. rc=0 suggest success.
but postfix is not running:


/var/log/mail.err shows:


imho, this should either be caught be "postfix check" with a proper
return code.

thanks,
raoul

#622771#10
Date:
2024-12-16 16:04:42 UTC
From:
To:
Control: tag -1 + confirmed upstream
Control: found -1 3.9.1-6
Control: postfix startup does not catch $data_directory lock issue

So this is $data_directory lock, not $queue_directory - ie, secondary
lock.

And this is indeed the case now in 2024 and postfix 3.9.1

/mjt

#622771#23
Date:
2024-12-16 16:11:25 UTC
From:
To:
 >> postfix tells me that it is starting. rc=0 suggest success.
Nope, my analysis was wrong. The current situation:

# postfix start
postfix/postfix-script: warning: not owned by postfix: /var/lib/postfix/.
postfix/postfix-script: starting the Postfix mail system
postfix/postfix-script: fatal: mail system startup failed
gandalf:/tmp/glibc# echo $?
1

so it' fixed now.  I dunno when, but it works correctly
in bookworm.

Fixing this bug now.

Thanks,

/mjt