Created attachment 255156 [details] diff to cf/m4/proto.m4 mail/sendmail has blacklistd support but it must be enabled by an option. It would be good to have a .mc option to enable this. Patch suggested although it might be good to make this conditional on the port build option.
my prefered way to set UseBlacklist is by adding it to make.conf sendmail_flags="-L sm-mta -bd -q30s -O UseBlacklist" I will test for regressions.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=19042fe3864739806d2d9d07637779c4c294b9dd commit 19042fe3864739806d2d9d07637779c4c294b9dd Author: Dirk Meyer <dinoex@FreeBSD.org> AuthorDate: 2024-11-14 15:01:41 +0000 Commit: Dirk Meyer <dinoex@FreeBSD.org> CommitDate: 2024-11-14 15:01:41 +0000 mail/sendmail: add confBLACKLISTD option PR: 282747 mail/sendmail/Makefile | 3 ++- mail/sendmail/files/extra-patch-proto.m4 (new) | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-)
Looks fine. No regression if used with rc.conf flags. # diff new.cf sendmail.cf < # Use Blacklistd < #O UseBlacklist=false
The behaviour implemented by this patch is not exactly intuitive: If a user selects the BLACKLISTD option in Makefile, s/he most likely wants to have it active when running sendmail. But then, why does the .mc option default to "false", actually? That is not exactly sensible. I'd say: either make it default "True", or document that the user still has to *manually* add define(`confBLACKLISTD', True) to the .mc file.
(In reply to Helge Oldach from comment #4) (That should read define(`confBLACKLIST', True) obviously. Bug subject misleading.)