Page MenuHomeFreeBSD

Move libmilter into a separate port from sendmail
AbandonedPublic

Authored by matthew on Jan 17 2016, 9:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 12 2025, 9:43 AM
Unknown Object (File)
Sep 3 2025, 12:59 PM
Unknown Object (File)
Sep 3 2025, 12:53 PM
Unknown Object (File)
Sep 3 2025, 8:06 AM
Unknown Object (File)
Sep 3 2025, 2:37 AM
Unknown Object (File)
Sep 1 2025, 4:57 PM
Unknown Object (File)
Aug 13 2025, 6:40 PM
Unknown Object (File)
Jul 28 2025, 5:00 AM
Subscribers
None

Details

Reviewers
bapt
Summary

Create a new mail/libmilter port distinct from mail/sendmail.

The idea here is that anyone wanting to configure a system where the
base is built WITHOUT_SENDMAIL in order to use an alternate MTA
doesn't then end up having to install sendmail somewhere in order to
use milters.

This also helps with the idea of making most shlibs in the base system
private.

Add new mail/libmilter port, content mostly copied or adapted from
mail/sendmail

Remove milter related parts of the mail/sendmail port. Note that
sendmail itself -- or any other MTA that can work with milters -- does
not need a LIB_DEPENDS on the new libmilter.

Update mail/sendmail/bsd.milter.mk so that milter ports will depend on
the new libmilter port. This is still conditional on the
WITH_SENDMAIL_PORT / WITH_SENDMAIL_BASE variables for backwards
compatibility.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 2393
Build 2409: arc lint + arc unit

Event Timeline

matthew retitled this revision from to Move libmilter into a separate port from sendmail.
matthew updated this object.
matthew edited the test plan for this revision. (Show Details)
matthew added a reviewer: bapt.

ToDo: Review the various milter ports, and ensure all of them are set up to be able to use the new mail/libmilter. Eg. security/clamav , security/clamav-milter are hardwired to use libmilter.so from the base system.

bapt edited edge metadata.
This revision is now accepted and ready to land.Jan 17 2016, 11:06 PM
matthew edited edge metadata.

Update mail/opendmarc to use bsd.milter.mk -- this allows opendmarc to
depend on the new libmilter port according to user settings.

This revision now requires review to proceed.Jan 19 2016, 11:50 AM
matthew edited edge metadata.

Sendmail needs -DMILTER in the compilation flags in order to be able
to use milters.

libmilter needs -DNETINET6 in order for IPv6 networking to be
supported.

Fix pkg-plist for libmilter: shlibs are now in
${LOCALBASE}/lib/libmilter/

actually, revert previous change: it needs intrusive changes in
various milters.

Commited by Dirk Meyer in r408774