ncsa / puppet-profile_email

0 stars 0 forks source link

SVCPLAN-5555: Add support for SUSE #8

Closed billglick closed 2 months ago

billglick commented 3 months ago

This is being tested on control-test-opensuse155a

jakerundall commented 3 months ago

The Puppet changes look fine but I was unable to send a test mail using this command:

echo "Subject: sendmail test $HOSTNAME" | sendmail myemail@blah.org

/var/log/maillog contains messages like these:

2024-06-07T13:50:51.147490-05:00 control-test-opensuse155a.internal.ncsa.edu postfix/pickup[10347]: 23EF7308A4: uid=0 from=<root>
2024-06-07T13:50:51.147570-05:00 control-test-opensuse155a.internal.ncsa.edu postfix/cleanup[11853]: warning: hash:/etc/postfix/canonical is unavailable. unsupported dictionary type: hash
2024-06-07T13:50:51.147644-05:00 control-test-opensuse155a.internal.ncsa.edu postfix/cleanup[11853]: warning: hash:/etc/postfix/canonical lookup error for "root@control-test-opensuse155a.internal.ncsa.edu"
2024-06-07T13:50:51.147727-05:00 control-test-opensuse155a.internal.ncsa.edu postfix/cleanup[11853]: warning: 23EF7308A4: canonical_maps map lookup problem for root@control-test-opensuse155a.internal.ncsa.edu -- message not accepted, try again later
2024-06-07T13:50:51.147803-05:00 control-test-opensuse155a.internal.ncsa.edu postfix/pickup[10347]: warning: maildrop/888BA30412: error writing 23EF7308A4: queue file write error
2024-06-07T13:50:51.152020-05:00 control-test-opensuse155a.internal.ncsa.edu postfix/cleanup[11854]: error: unsupported dictionary type: hash
2024-06-07T13:50:51.152959-05:00 control-test-opensuse155a.internal.ncsa.edu postfix/cleanup[11854]: error: unsupported dictionary type: hash
billglick commented 3 months ago

@jakerundall I figured out the issue with postfix.

Apparently postfix stopped supporting the dictionary type hash and swapped to using lmdb by default instead. I am not really sure if that is true, or more of an issue of how the distros are supporting lmdb vs hash.

RHEL 7-9 releases all support and default to using hash, though RHEL 9 does support lmdb with package postfix-lmdb, but it still defaults to using hash.

SUSE 15.5 seems to only support lmdb.

So for now I have Red Hat using hash and SUSE using lmdb. Long term that is probably not the correct logic, but works for now.