Bug 244937 - [patch] Unbreak buildworld for sendmail and SMTP Authentication
Summary: [patch] Unbreak buildworld for sendmail and SMTP Authentication
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Documentation (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-doc mailing list
Keywords: easy, patch
Depends on:
Reported: 2020-03-20 19:36 UTC by Eugene Grosbein
Modified: 2020-03-20 20:07 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Grosbein freebsd_committer 2020-03-20 19:36:27 UTC
FreeBSD Handbook's chapter "Electronic Mail" has section "SMTP Authentication" that dates back the times FreeBSD had not any OpenSSL version in base system. Now since we have different OpenSSL versions in different supported branches (1.0.2 for stable/11 and 1.1.1+ for stable/12) that differ in API and ABI, this section needs small correction because it's broken for stable/11 for the moment.

It's paragraph 4 suggests:

Next, edit /etc/make.conf and add the following lines:

SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL

The line "SENDMAIL_LDFLAGS=-L/usr/local/lib" should be replaced with another one:


That's because the only port's library our stock sendmail needs is really libsasl2.so. With -L/usr/local/lib buildworld process links sendmail with ports version of libcrypto what is wrong for stable/11 which needs base system version of libcrypto. The problem's solved with noted one-line change.

I'd like to see this change performed before 11.4-RELEASE coming soon.
Comment 1 Eugene Grosbein freebsd_committer 2020-03-20 20:07:58 UTC
Small correction: both current "SENDMAIL_LDFLAGS=-L/usr/local/lib" and "SENDMAIL_LDADD=-lsasl2" should be replaced with single line: