Bug 265236

Summary: native sendmail auth fails with cyrus-sasl
Product: Base System Reporter: DYM <dym>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed DUPLICATE    
Severity: Affects Many People CC: emaste
Priority: ---    
Version: 13.1-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
fix native sendmail auth with cyrus-sasl none

Description DYM 2022-07-15 14:39:29 UTC
Created attachment 235273 [details]
fix native sendmail auth with cyrus-sasl

The problem appears after a kernel/world update on FreeBSD 12.3, 13.0 at least.
Authentication does not work when using the regular sendmail and cyrus-sasl.

Additional lines in make.conf:
================================================
SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2
================================================

The problem itself has been known for a long time, so has the solution:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263287
solves the problem for sendmail ports.
For basic sendmail, only the line numbers are changed to make corrections.

It's the same here:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262935#c4
But for some unknown reason in the bug description say only 12.3.
Dirk Meyer confirms the problem in several versions.

Attached is a patch containing a fix for version 13.0
For the other versions, I don't think it's a problem to make patches.

I would like to make a fix for the sources.
Comment 1 Ed Maste freebsd_committer freebsd_triage 2022-10-26 17:04:07 UTC

*** This bug has been marked as a duplicate of bug 262935 ***
Comment 2 Ed Maste freebsd_committer freebsd_triage 2022-10-26 17:04:44 UTC
Thank you for the report, I have applied the patch from PR262935 to main and it will be merged to the other branches shortly.