Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 2019 18:58:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 239409] mail/milter-greylist build fails when sendmail configured for SMTP Authentication
Message-ID:  <bug-239409-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239409

            Bug ID: 239409
           Summary: mail/milter-greylist build fails when sendmail
                    configured for SMTP Authentication
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ws@au.dyndns.ws
                CC: m.tsatsenko@gmail.com
                CC: m.tsatsenko@gmail.com
             Flags: maintainer-feedback?(m.tsatsenko@gmail.com)

The "standard" method of enabling SMTP Authentication for Sendmail includes
adding the following to /etc/make.conf:

SENDMAIL_CFLAGS=3D-I/usr/local/include -DSASL
SENDMAIL_LDFLAGS=3D-L/usr/local/lib
SENDMAIL_LDADD=3D-lsasl2

Refer:
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/SMTP-Auth.html
https://svnweb.freebsd.org/ports/head/security/cyrus-sasl2/files/Sendmail.R=
EADME?view=3Dmarkup

This configuration causes poudriere builds of milter-greylist to fail, and =
also
local builds via /usr/ports if cyrus-sasl2 is not already installed.

Since enabling SMTP Authentication in Sendmail seems to be essentially a
"supported" configuration it would be better if that configuration did not
hinder compilation of related ports unnecessarily. A solution for
milter-greylist is to add a conditional dependency on security/cyrus-sasl2,
such as:

--- Makefile.1  2019-07-23 03:50:02.878890000 +0000
+++ Makefile    2019-07-24 00:02:07.740684000 +0000
@@ -57,6 +57,10 @@

 .include <bsd.port.options.mk>

+.if ${SENDMAIL_CFLAGS:M-DSASL}
+LIB_DEPENDS+=3D  libsasl2.so:security/cyrus-sasl2
+.endif
+
 LIBS+=3D         -lpthread

 GNU_CONFIGURE=3D yes

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239409-7788>