Broken postfix/tlsmgr

Description

monit keeps spamming errors and fixes for postfix, and status monitors are reporting port 25 as non-working.

[web2] postfix 
 alert - failed protocol test [SMTP] at [localhost]:25 [TCP/IP] -- Error receiving data from the mailserver -- Resource temporarily unavailable
[web2] postfix 
 alert - connection succeeded to [localhost]:25 [TCP/IP]

Service appears to be up and working, but I found this in maillog:

Nov 14 20:10:44 web2 postfix/tlsmgr[1269730]: warning: dict_proxy_sequence: service proxywrite: Application error
Nov 14 20:10:44 web2 postfix/postscreen[1377623]: warning: dict_proxy_lookup: service proxywrite: Connection reset by peer
Nov 14 20:10:44 web2 postfix/master[2514]: warning: process /usr/libexec/postfix/proxymap pid 1378868 killed by signal 6
Nov 14 20:10:45 web2 postfix/proxymap[1378875]: panic: dict_db_sequence: no cursor
Nov 14 20:10:46 web2 postfix/postscreen[1377623]: warning: dict_proxy_lookup: service proxywrite: Connection reset by peer
Nov 14 20:10:46 web2 postfix/tlsmgr[1269730]: warning: dict_proxy_sequence: service proxywrite: Application error
Nov 14 20:10:46 web2 postfix/master[2514]: warning: process /usr/libexec/postfix/proxymap pid 1378875 killed by signal 6
Nov 14 20:10:46 web2 postfix/master[2514]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
Nov 14 20:10:50 web2 postfix/master[2514]: warning: master_wakeup_timer_event: service tlsmgr(private/tlsmgr): Resource temporarily unavailable
Nov 14 20:10:52 web2 postfix/postscreen[1377623]: fatal: watchdog timeout
Nov 14 20:10:53 web2 postfix/master[2514]: warning: process /usr/libexec/postfix/postscreen pid 1377623 exit status 1

Tests

  • :white_check_mark: ran upcp
  • :white_check_mark: restarted apiscp service
  • :white_check_mark: restarted postfix service
  • :white_check_mark: restarted haproxy service
  • :white_check_mark: restarted server itself

Environment

[root@web2 ~]# cpcmd misc:cp-version
revision: 3ec2e7884c258580fa707cfe827a4269861007c6
timestamp: 1730519492
ver_maj: 3
ver_min: 2
ver_patch: 45
ver_pre: ''
dirty: false
debug: false
[root@web2 ~]# uname -r
5.4.285-1.el8.elrepo.x86_64
rm -f /var/lib/postfix/*.db
systemctl restart postfix

Local cache becomes corrupted either from an irregular shutdown during an asynchronous write operation or drive ran out of space at one point.

1 Like

Makes sense, yeah. This node belly up’d few days ago thanks to MySQL logs :innocent:

I’ve added LMDB support to Postfix builds on edge. This can be rebuilt from the public repo.

To switch these caches over after install, run:

cpcmd scope:set cp.bootstrapper postfix_file_dbtype lmdb
upcp -sb mail/configure-postfix
1 Like