Hi postfix friends,

usually I've always found a solution when I ran into postfix
problems. Even the change from postfix 2.11 on old 14.xx
ubuntu distribution to the 20.04 LTS (forgot the postfix version)
was not a big deal, everything ran smooth.
But now, with a release-upgrade from 20.04 LTS to 22.04 LTS
there has been a postfix update to 3.6.4 and now not a single
(sub-)process of postfix starts and there's no log entry nor error
message in mail.err, the process seems to die absolutely silently.
I'm still using my old configuration files (sorry for that) because
it has been a lot of work to get postfix/postgrey/amavisd and
many more processes working together properly.

In the "old world" everything starts up as expected:
root@berilia:/etc/postfix# netstat -tulpn | grep master
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 7429/master
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 7429/master
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 7429/master
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 7429/master
tcp6 0 0 :::587 :::* LISTEN 7429/master
tcp6 0 0 :::465 :::* LISTEN 7429/master
tcp6 0 0 :::25 :::* LISTEN 7429/master

But now, in the 3.6.4 world there's no process for smtp:
root@jerakeen:/var/log# netstat -tulpn | grep master
root@jerakeen:/var/log#

So I looked into the /var/log/mail.log and *.err, but there's
no message except for this after reloading the config:
Oct 1 22:04:42 jerakeen postfix/postfix-script[1901]: refreshing the
Postfix mail system
Oct 1 22:04:58 jerakeen postfix/postfix-script[1911]: refreshing the
Postfix mail system
Oct 1 22:08:04 jerakeen postfix/postfix-script[1927]: refreshing the
Postfix mail system
Oct 1 22:12:46 jerakeen postfix/postfix-script[2029]: refreshing the
Postfix mail system
Oct 1 22:22:35 jerakeen postfix/postfix-script[2058]: refreshing the
Postfix mail system

Postfix itself says it's running (but with remark "exited" in brackets).

Then I thought: "Well, let's try what they said about debugging,
catching
all necessary information with strace (in my case)". But: After reload I
can
see ... nothing.

It seems that postfix for some reason does not start any subprocesses
(or how the "master" process should be called). On the other hand:
There's
no "postfix" process at all although the systemctl statement says that
postfix
ist active. In my old system I can see these processes:
root@berilia:/etc/postfix# ps -ef | grep -i postfix
root 7429 1 0 Sep21 ? 00:00:38 /usr/lib/postfix/master
postfix 7437 7429 0 Sep21 ? 00:00:04 qmgr -l -t fifo -u
postfix 7438 7429 0 Sep21 ? 00:00:03 tlsmgr -l -t unix -u
postfix 24361 7429 0 21:16 ? 00:00:00 pickup -l -t fifo -u
postfix 24563 7429 0 22:35 ? 00:00:00 smtpd -n smtp -t inet -u -o
stress= -s 2
postfix 24565 7429 0 22:35 ? 00:00:00 anvil -l -t unix -u
root 24580 23931 0 22:39 pts/1 00:00:00 grep --color=auto -i postfix

On my new system which has worked fine until upgrading it to 3.6.4 I can
see no single postfix entry:
root@jerakeen:/var/log# ps -ef | grep -i postfix
root 2136 1514 0 22:41 pts/1 00:00:00 grep --color=auto -i postfix

Do you have an idea how to proceed? I now see that postfix does not
start
at all, but without any trace when reloading config, I can't see a
chance to 
get information why postfix does not start anymore.
Right now I'm working on a virtual machine (VirtualBox, latest version),
but
this worked fine with ubuntu 20.04 LTS and the corresponding postfix
version.
Yesterday I did a do-release-upgrade and everything works fine right
now,
even Apache2/PHP/phpmyadmin/roundcube ... but postfix is on strike some-
how.

-----------------------------------------------------------------------------------------------------

Act II:

Postfix does not start at all as I saw right now. And the
stopping also gives strange messages:
root@jerakeen:~# 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
postfix/postfix-script: waiting for the Postfix mail system to terminate
Oct 02 16:24:11 derdickehase postfix/postfix-script[3225]: waiting for
the Postfix mail system to terminate
/usr/libexec/postfix/master: symbol lookup error:
/usr/libexec/postfix/master: undefined symbol: var_compat_level
postfix/postfix-script: waiting for the Postfix mail system to terminate
Oct 02 16:24:12 derdickehase postfix/postfix-script[3228]: waiting for
the Postfix mail system to terminate
/usr/libexec/postfix/master: symbol lookup error:
/usr/libexec/postfix/master: undefined symbol: var_compat_level
postfix/postfix-script: waiting for the Postfix mail system to terminate
Oct 02 16:24:13 derdickehase postfix/postfix-script[3231]: waiting for
the Postfix mail system to terminate
/usr/libexec/postfix/master: symbol lookup error:
/usr/libexec/postfix/master: undefined symbol: var_compat_level
postfix/postfix-script: waiting for the Postfix mail system to terminate
Oct 02 16:24:14 derdickehase postfix/postfix-script[3234]: waiting for
the Postfix mail system to terminate
/usr/libexec/postfix/master: symbol lookup error:
/usr/libexec/postfix/master: undefined symbol: var_compat_level
postfix/postfix-script: waiting for the Postfix mail system to terminate
Oct 02 16:24:15 derdickehase postfix/postfix-script[3237]: waiting for
the Postfix mail system to terminate
postfix/postfix-script: warning: stopping the Postfix mail system with
force
Oct 02 16:24:16 derdickehase postfix/postfix-script[3239]: warning:
stopping the Postfix mail system with force

What can I do? Installing Postfix from source in an older or
in a newer version?

-------------------------------------------------------------------------------------------------------------------

Act III

Today I tried to install postfix 3.7.2 manually. I was enable to include
MySQL support
as well as TLS support. But the SASL (sasl2 / cyrus) configuration as
given by page
https://www.postfix.org/SASL_README.html does not work at all. When
trying to 
send mails the answer of postfix (logging to stdoud) says:
postfix/smtpd[10184]: warning: smtpd_sasl_auth_enable is true, but SASL
support is not compiled in

And this seems to be right, postfix and ldd say the same:
root@jerakeen:/stage/postfix-3.7.2# postconf -a
root@jerakeen:/stage/postfix-3.7.2# postconf -A
root@jerakeen:/stage/postfix-3.7.2# ldd /usr/sbin/postfix | grep sasl

My ideas are reaching the end for today, I've no clue why making postfix
with SASL
does not work on my ubuntu 22.04 LTS server. This is my make command I
used
in the end:
make tidy && time make CCARGS="-DUSE_TLS -DUSE_SASL_AUTH
-DUSE_CYRUS_SASL -I/usr/include/sasl -DHAS_PRCE -I/usr/include/prce2
-DHAS_MYSQL -I/usr/include/mysql" AUXLIBS="-lssl -lcrypto -lmysqlclient
-lz -lm -R/usr/lib/x86_64-linux-gnu -lsasl2"

For me it's not that important to have a working 3.6.4 or 3.7.2 version
of postfix
but it would be great to get one of them to work properly.

Does anybody encounter similar problems (either the first one or the
second)?

Best Regards,
Martin

-- 

_______________________________________________

[born at 328 ppm atmospherical CO2]

 

Reply via email to