The "standard" method of enabling SMTP Authentication for Sendmail includes adding the following to /etc/make.conf:
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 @@
I am not sure.
Although what you are suggesting will do the trick it may cause some trouble in the future. Why we dont just add SASL option to the port?
Well, I had a look at this.
It seems that the problem is caused by very old workaround which is not needed anymore.
Could you please confirm commenting out following lines passing SENDMAIL_FLAGS to the build solves for problem for you:
(In reply to m.tsatsenko from comment #2)
I confirm that removing those lines from the port Makefile resolves the build problem when tested with poudriere.
Thank you very much for identifying that.
Thanks for feedback. I will submit a patch to fix this next few days.