sendmail (both base and ports/mail/sendmail) are incompatible with ports/security/cyrus-sasl2. The sendmail macro SASL_AUTH_AUTH is inconsistent with the cyrus-sasl2 macro SASL_SEC_MAXIMUM, causing SASL to disable all authentication mechanisms. Whilst this is a sendmail bug (fixed in the 1.17.1.9 snapshot), it may be worthwhile patching SASL_SEC_MAXIMUM (changing it to 0x0fff) until the fixed sendmail is available.
Bug #262935 (mail/sendmail: 8.17.1_2 -> 8.17.1_3 upgrade breaks SMTP AUTH) probably is also related to this one.
Bug #263287 addresses the issue for ports sendmail but not base sendmail.
Created attachment 233353 [details] Suggested patch patch extracted from snapshot sendmail-8.17.1.9 Tested successfully in sendmail from ports.
/usr/src/contrib/sendmail/src/sendmail.h Affected versions in base: FreeBSD 14 FreeBSD 13.1-RC2 FreeBSD 13.0 FreeBSD 12.3
I was just bitten by this after doing a from source upgrade of my 13-stable system. Who is the current maintainer of sendmail in base? How can I assist in getting a fix into the tree?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=c898b54affbaa9fc22c1d1b1de4a175dd250f37e commit c898b54affbaa9fc22c1d1b1de4a175dd250f37e Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-10-25 15:53:07 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-10-26 16:58:56 +0000 sendmail: fix auth with cyrus-sasl-2.1.28 Apply patch extracted from sendmail-8-17.1.9 snapshot by dinoex@. PR: 262935 Reviewed by: gshapiro MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37119 contrib/sendmail/src/sendmail.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
*** Bug 265236 has been marked as a duplicate of this bug. ***
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=2123b467b4ccc79f9bddab3c7d5ba93b9c7414cd commit 2123b467b4ccc79f9bddab3c7d5ba93b9c7414cd Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-10-25 15:53:07 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-10-29 01:45:43 +0000 sendmail: fix auth with cyrus-sasl-2.1.28 Apply patch extracted from sendmail-8-17.1.9 snapshot by dinoex@. PR: 262935 Reviewed by: gshapiro MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37119 (cherry picked from commit c898b54affbaa9fc22c1d1b1de4a175dd250f37e) contrib/sendmail/src/sendmail.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=7dfe3b098123cd8652f173e3f40cb78e462f52ed commit 7dfe3b098123cd8652f173e3f40cb78e462f52ed Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-10-25 15:53:07 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-10-29 01:46:12 +0000 sendmail: fix auth with cyrus-sasl-2.1.28 Apply patch extracted from sendmail-8-17.1.9 snapshot by dinoex@. PR: 262935 Reviewed by: gshapiro MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37119 (cherry picked from commit c898b54affbaa9fc22c1d1b1de4a175dd250f37e) (cherry picked from commit 2123b467b4ccc79f9bddab3c7d5ba93b9c7414cd) contrib/sendmail/src/sendmail.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
A commit in branch releng/12.4 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=1ccfac2381c3a8a399be260377bb9181d4590a6c commit 1ccfac2381c3a8a399be260377bb9181d4590a6c Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-10-25 15:53:07 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-10-31 17:16:20 +0000 sendmail: fix auth with cyrus-sasl-2.1.28 Apply patch extracted from sendmail-8-17.1.9 snapshot by dinoex@. PR: 262935 Reviewed by: gshapiro MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37119 (cherry picked from commit c898b54affbaa9fc22c1d1b1de4a175dd250f37e) (cherry picked from commit 2123b467b4ccc79f9bddab3c7d5ba93b9c7414cd) (cherry picked from commit 7dfe3b098123cd8652f173e3f40cb78e462f52ed) Approved by: re (gjb) contrib/sendmail/src/sendmail.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)