On 10/2/22 14:42, Viktor Dukhovni wrote:
On Sun, Oct 02, 2022 at 08:22:39PM +0000, Martin wrote:
# postfix stop
postfix/postfix-script: stopping the Postfix mail system
Oct 02 16:24:11 derdickehase postfix/postfix-script[3222]: stopping the Postfix 
mail system
/usr/libexec/postfix/postfix-script: 216: kill: No such process
/usr/libexec/postfix/master: symbol lookup error: /usr/libexec/postfix/master: 
undefined symbol: var_compat_level
Bingo.  Your Postfix software is not properly installed.  My Postfix 3.6.4
"master" executable does not have a "var_compat_level" symbol:

Before you take any of my advice, please wait for confirmation from someone here who is more of an expert than me.  It is USUALLY very safe to do package re-installation on systems that use apt, especially for software with a high-profile reputation like postfix, but I would really hate to suggest something that makes things worse rather than better.  And please at a minimum do make a tarball of /etc and store that backup somewhere safe beforehand so you have all the current configs just in case.  Even better would be a backup of the full system.

What I would try to fix this since you're on Ubuntu:

sudo apt install --reinstall `dpkg -l | grep -E "\s+postfix" | awk '{print $2}'`

If you are at all worried about what packages that will reinstall, run the part in backquotes by itself to see the package list:

dpkg -l | grep -E "\s+postfix" | awk '{print $2}'

On my mailserver that only yields postfix packages.

Thanks,
Shawn

p.s.: I know that shellcheck recommends $(command) rather than backquotes, but I like the backquotes.

Reply via email to