Bug 262935 - sendmail auth fails with cyrus-sasl-2.1.28
Summary: sendmail auth fails with cyrus-sasl-2.1.28
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.3-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: Ed Maste
URL: https://reviews.freebsd.org/D37119
Keywords: patch
: 265236 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-03-30 10:06 UTC by Peter Jeremy
Modified: 2022-10-31 17:34 UTC (History)
7 users (show)

See Also:


Attachments
Suggested patch (885 bytes, patch)
2022-04-20 06:27 UTC, Dirk Meyer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Jeremy freebsd_committer freebsd_triage 2022-03-30 10:06:42 UTC
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.
Comment 1 Fabian Wenk 2022-04-19 19:45:27 UTC
Bug #262935 (mail/sendmail: 8.17.1_2 -> 8.17.1_3 upgrade breaks SMTP AUTH) probably is also related to this one.
Comment 2 Peter Jeremy freebsd_committer freebsd_triage 2022-04-19 22:20:02 UTC
Bug #263287 addresses the issue for ports sendmail but not base sendmail.
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2022-04-20 06:27:55 UTC
Created attachment 233353 [details]
Suggested patch

patch extracted from snapshot sendmail-8.17.1.9

Tested successfully in sendmail from ports.
Comment 4 Dirk Meyer freebsd_committer freebsd_triage 2022-04-20 06:41:40 UTC
/usr/src/contrib/sendmail/src/sendmail.h

Affected versions in base:
FreeBSD 14
FreeBSD 13.1-RC2
FreeBSD 13.0
FreeBSD 12.3
Comment 5 Justin T. Gibbs freebsd_committer freebsd_triage 2022-10-25 15:06:42 UTC
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?
Comment 6 commit-hook freebsd_committer freebsd_triage 2022-10-26 17:03:02 UTC
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(-)
Comment 7 Ed Maste freebsd_committer freebsd_triage 2022-10-26 17:04:07 UTC
*** Bug 265236 has been marked as a duplicate of this bug. ***
Comment 8 commit-hook freebsd_committer freebsd_triage 2022-10-29 01:47:15 UTC
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(-)
Comment 9 commit-hook freebsd_committer freebsd_triage 2022-10-29 01:47:17 UTC
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(-)
Comment 10 commit-hook freebsd_committer freebsd_triage 2022-10-31 17:19:08 UTC
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(-)