1 Patch from John Marshall (slightly modified).
2 Modified for 8.16.1 by Anne Bennett.
4 --- a/sendmail/srvrsmtp.c 2020-09-28 17:51:12.497535563 -0400
5 +++ b/sendmail/srvrsmtp.c 2020-09-28 18:21:30.482890337 -0400
9 RESET_AUTH_FAIL_LOG_USER; \
10 - result = reset_saslconn(&conn, AuthRealm, remoteip, \
11 + result = reset_saslconn(&conn, hostname, remoteip, \
12 localip, auth_id, &ext_ssf); \
13 if (result != SASL_OK) \
16 e->e_features = features;
17 hostname = macvalue('j', e);
19 - if (AuthRealm == NULL)
20 - AuthRealm = hostname;
21 sasl_ok = bitset(SRV_OFFER_AUTH, features);
23 authenticating = SASL_NOT_AUTH;
28 - result = sasl_server_new("smtp", AuthRealm, NULL, NULL, NULL,
30 + result = sasl_server_new("smtp", hostname, AuthRealm, NULL,
31 + NULL, NULL, 0, &conn);
33 /* use empty realm: only works in SASL > 1.5.5 */
34 result = sasl_server_new("smtp", AuthRealm, "", NULL, 0, &conn);
39 - result = sasl_server_new("smtp", hostname, NULL, NULL, NULL,
40 + result = sasl_server_new("smtp", hostname, AuthRealm, NULL, NULL,
43 /* use empty realm: only works in SASL > 1.5.5 */