Despite the postfix server starting at boot and active, no local mail is delivered.
mailq command outputs loads of entries like…
0F8B1665B0 701 Wed May 5 19:53:02 root
root
…and there log entries like these…
postfix/cleanup[3433]: warning: hash:/etc/postfix/sender_canonical is unavailable. unsupported dictionary type: hash
postfix/cleanup[3433]: warning: hash:/etc/postfix/sender_canonical lookup error for “root@localhost”
postfix/cleanup[3433]: warning: 97E86665CF: canonical_maps map lookup problem for root@localhost – message not accepted, try again later
postfix/cleanup[3433]: warning: 97E86665CF: sender_canonical_maps map lookup problem for root@localhost – message not accepted, try again later
postfix/cleanup[3433]: warning: hash:/etc/postfix/canonical is unavailable. unsupported dictionary type: hash
postfix/cleanup[3433]: warning: hash:/etc/postfix/canonical lookup error for “root@localhost”
postfix/pickup[1276]: warning: maildrop/9CD2A660F0: error writing 97E86665CF: queue file write error
Tried web searching for these warnings above, but did not find any explanation or solution.
/etc/postfix/main.cf configs seemingy related are as such…
canonical_maps = hash:/etc/postfix/canonical
relocated_maps = hash:/etc/postfix/relocated
sender_canonical_maps = hash:/etc/postfix/sender_canonical
When looking at the contents of /etc/postfix/canonical and /etc/postfix/relocated, they strangely seem to be man page content, though that is also the case on another machine that delivers mail just fine.
Have all latest system updates, and tried rebooting, but no avail.
Running opensuse tumbleweed kernel 5.12.2-1-default, and postfix version 3.5.10 release 1.2.
What do you advise, to diagnose this and get local mail working?
Just looking at those two lines above postfix will be expecting to find /etc/postfix/canonical.db which should have been made with the postconf command. Do you have such a file?
~: file /etc/postfix/canonical*
/etc/postfix/canonical: ASCII text
/etc/postfix/canonical.db: Berkeley DB (Hash, version 9, native byte-order)
/etc/postfix/canonical.lmdb: data
Sounds like it’s not easier to reconfigure postfix to use type hash. If so, can you point to easiest way to change database type, and what type you’d recommend? Does it entail procuring another database, or just pointing postfix to something else already present? Not seasoned in postfix yet.
Much the same with my ancient system which hasn’t had it’s postfix configuration touched this year.
Cumulus:~ # ls -al /etc/postfix/can*
-rw-r--r-- 1 root root 13194 Feb 2 15:13 /etc/postfix/canonical
-rw-r--r-- 1 root root 12288 Feb 6 02:31 /etc/postfix/canonical.db
Suspect they maybe rebuilt when some updates are installed. At least my .db mod dates are after the mod dates of base text file which yours are not but your .lmdb files do show a later modification date. So did you change from using ‘hash’ to ‘btree’ file formats?
If it’s not easier to reconfigure postfix to use type hash, can someone point to easiest way to change database type, and which type is a good choice? Does it entail procuring another database, or just pointing postfix to something else already present? Still new to postfix.