Thanks for filing this bug Scott. I was able to reproduce the bug in Debian with sasl2-bin/2.1.28+dfsg-11, as you mentioned it is not reproducible in Ubuntu Lunar (with sasl2-bin/2.1.28+dfsg-10) but it will in Mantic when we sync the latest version of sasl-bin. I am subscribing ubuntu-server so we can take a look at it. Error log: autopkgtest [10:47:07]: test postfix: [----------------------- Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: ca-certificates cpio libicu72 openssl ssl-cert Suggested packages: libarchive-dev postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb postfix-sqlite postfix-cdb mail-reader postfix-mta-sts-resolver ufw postfix-doc The following NEW packages will be installed: ca-certificates cpio libicu72 openssl postfix ssl-cert 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 11.2 MB/12.7 MB of archives. After this operation, 45.1 MB of additional disk space will be used. Get:1 file:/tmp/autopkgtest.sWccF2/binaries postfix 3.7.5-1 [1499 kB] Get:2 http://deb.debian.org/debian sid/main amd64 libicu72 amd64 72.1-3 [9376 kB] Get:3 http://deb.debian.org/debian sid/main amd64 openssl amd64 3.0.8-1 [1407 kB] Get:4 http://deb.debian.org/debian sid/main amd64 ssl-cert all 1.1.2 [21.1 kB] Get:5 http://deb.debian.org/debian sid/main amd64 cpio amd64 2.13+dfsg-7.1 [245 kB] Get:6 http://deb.debian.org/debian sid/main amd64 ca-certificates all 20230311 [153 kB] Preconfiguring packages ... Fetched 11.2 MB in 7s (1509 kB/s) Selecting previously unselected package libicu72:amd64. (Reading database ... 15779 files and directories currently installed.) Preparing to unpack .../0-libicu72_72.1-3_amd64.deb ... Unpacking libicu72:amd64 (72.1-3) ... Selecting previously unselected package openssl. Preparing to unpack .../1-openssl_3.0.8-1_amd64.deb ... Unpacking openssl (3.0.8-1) ... Selecting previously unselected package ssl-cert. Preparing to unpack .../2-ssl-cert_1.1.2_all.deb ... Unpacking ssl-cert (1.1.2) ... Selecting previously unselected package cpio. Preparing to unpack .../3-cpio_2.13+dfsg-7.1_amd64.deb ... Unpacking cpio (2.13+dfsg-7.1) ... Selecting previously unselected package postfix. Preparing to unpack .../4-postfix.deb ... Unpacking postfix (3.7.5-1) ... Selecting previously unselected package ca-certificates. Preparing to unpack .../5-ca-certificates_20230311_all.deb ... Unpacking ca-certificates (20230311) ... Setting up cpio (2.13+dfsg-7.1) ... update-alternatives: using /bin/mt-gnu to provide /bin/mt (mt) in auto mode Setting up libicu72:amd64 (72.1-3) ... Setting up openssl (3.0.8-1) ... Setting up ca-certificates (20230311) ... Updating certificates in /etc/ssl/certs... 140 added, 0 removed; done. Setting up ssl-cert (1.1.2) ... Setting up postfix (3.7.5-1) ... Adding group `postfix' (GID 108) ... Done. Adding system user `postfix' (UID 101) ... Adding new user `postfix' (UID 101) with group `postfix' ... Not creating home directory `/var/spool/postfix'. Creating /etc/postfix/dynamicmaps.cf Adding group `postdrop' (GID 109) ... Done. setting myhostname: localhost.lxd setting alias maps setting alias database mailname is not a fully qualified domain name. Not changing /etc/mailname. setting destinations: $myhostname, localhost, localhost.localdomain, localhost setting relayhost: setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 setting mailbox_command setting mailbox_size_limit: 0 setting recipient_delimiter: + setting inet_interfaces: all setting inet_protocols: all /etc/aliases does not exist, creating it. WARNING: /etc/aliases exists, but does not have a root alias. Postfix (main.cf) is now set up with a default configuration. If you need to make changes, edit /etc/postfix/main.cf (and others) as needed. To view Postfix configuration values, see postconf(1). After modifying main.cf, be sure to run 'systemctl reload postfix'. Running newaliases Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /lib/systemd/system/postfix.service. Processing triggers for libc-bin (2.36-9) ... Processing triggers for ca-certificates (20230311) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. FEEEEEE.EEEEEE. ====================================================================== ERROR: test_10_commands (__main__.PostfixTest.test_10_commands) Basic SMTP commands ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 254, in test_10_commands code, msg = self.s.ehlo() ^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'ehlo' ====================================================================== ERROR: test_10_sending_mail_direct (__main__.PostfixTest.test_10_sending_mail_direct) Mail delivered normally ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 333, in test_10_sending_mail_direct self._test_roundtrip_mail(self.user) File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 328, in _test_roundtrip_mail self._test_deliver_mail(user_sent_to, auth_user, auth_pass, use_tls=use_tls) File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 277, in _test_deliver_mail failed = self.s.sendmail('root',[user_sent_to.login,'does-not-exist'],'''From: Rooty ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'sendmail' ====================================================================== ERROR: test_10_sending_mail_direct_auth (__main__.PostfixTest.test_10_sending_mail_direct_auth) Mail authentication ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 342, in test_10_sending_mail_direct_auth self.assertRaises(smtplib.SMTPAuthenticationError, self.s.login, 'root', 'crapcrapcrap') ^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'login' ====================================================================== ERROR: test_10_sending_mail_direct_auth_full (__main__.PostfixTest.test_10_sending_mail_direct_auth_full) Mail delivered with authentication ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 349, in test_10_sending_mail_direct_auth_full self._test_roundtrip_mail(self.user, auth_user=self.user.login, auth_pass=self.user.password) File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 328, in _test_roundtrip_mail self._test_deliver_mail(user_sent_to, auth_user, auth_pass, use_tls=use_tls) File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 274, in _test_deliver_mail self.s.login(auth_user, auth_pass) ^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'login' ====================================================================== ERROR: test_10_sending_mail_direct_with_tls (__main__.PostfixTest.test_10_sending_mail_direct_with_tls) Mail delivered normally with TLS ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 337, in test_10_sending_mail_direct_with_tls self._test_roundtrip_mail(self.user, use_tls=True) File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 328, in _test_roundtrip_mail self._test_deliver_mail(user_sent_to, auth_user, auth_pass, use_tls=use_tls) File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 276, in _test_deliver_mail self.s.starttls() ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'starttls' ====================================================================== ERROR: test_10_sending_mail_forward_normal (__main__.PostfixTest.test_10_sending_mail_forward_normal) Mail delivered via .forward ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 362, in test_10_sending_mail_forward_normal self._test_roundtrip_mail(forward_user, self.user) File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 328, in _test_roundtrip_mail self._test_deliver_mail(user_sent_to, auth_user, auth_pass, use_tls=use_tls) File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 277, in _test_deliver_mail failed = self.s.sendmail('root',[user_sent_to.login,'does-not-exist'],'''From: Rooty ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'sendmail' ====================================================================== ERROR: test_11_security_CVE_2008_2936 (__main__.PostfixTest.test_11_security_CVE_2008_2936) CVE-2008-2936 fixed ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 408, in test_11_security_CVE_2008_2936 failed = self.s.sendmail('root',[self.user.login],'''From: Evil ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'sendmail' ====================================================================== ERROR: test_20_sasldb_cram_md5 (__main__.PostfixTest.test_20_sasldb_cram_md5) Test sasldb CRAM-MD5 ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 450, in test_20_sasldb_cram_md5 self.s.quit() ^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'quit' ====================================================================== ERROR: test_20_sasldb_digest_md5 (__main__.PostfixTest.test_20_sasldb_digest_md5) Test sasldb DIGEST-MD5 is supported ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 466, in test_20_sasldb_digest_md5 self.s.quit() ^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'quit' ====================================================================== ERROR: test_20_sasldb_login (__main__.PostfixTest.test_20_sasldb_login) Test sasldb LOGIN is supported ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 480, in test_20_sasldb_login self.s.quit() ^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'quit' ====================================================================== ERROR: test_20_sasldb_plain (__main__.PostfixTest.test_20_sasldb_plain) Test sasldb PLAIN ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 494, in test_20_sasldb_plain self.s.quit() ^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'quit' ====================================================================== ERROR: test_21_security_CVE_2011_1720 (__main__.PostfixTest.test_21_security_CVE_2011_1720) CVE-2011-1720 fixed ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 510, in test_21_security_CVE_2011_1720 self.s.quit() ^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'quit' ====================================================================== FAIL: test_00_listening (__main__.PostfixTest.test_00_listening) Postfix is listening ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 233, in test_00_listening self._setUp() File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 80, in _setUp self._setup_sasl("PLAIN") File "/tmp/autopkgtest.sWccF2/build.BCq/src/debian/tests/test-postfix.py", line 162, in _setup_sasl assert subprocess.call(['/usr/sbin/service', 'saslauthd', 'start'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) == 0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ---------------------------------------------------------------------- Ran 15 tests in 7.325s FAILED (failures=1, errors=12) autopkgtest [10:47:42]: test postfix: -----------------------] autopkgtest [10:47:43]: test postfix: - - - - - - - - - - results - - - - - - - - - - postfix FAIL non-zero exit status 1