Created attachment 190316 [details] patch Hi, NetBSD has introduced blacklistd support to postfix. https://github.com/NetBSD/src/commit/3ae4028 I've imported it to mail/postfix. The purpose to support blacklistd in postfix is to block SMTP-AUTH brute-force attack on 587/tcp or 465/tcp. This patch inserts notification of SASL authentication failure. Probably some more changes will be needed before merge but let's discuss.
Created attachment 190602 [details] patch-postfix-3.3.0.r1,1-blacklistd.txt Updated patch to 3.3.0.r1.
A commit references this bug: Author: ohauer Date: Sun Feb 25 15:27:31 UTC 2018 New revision: 462959 URL: https://svnweb.freebsd.org/changeset/ports/462959 Log: - update to 3.3.0 - add patch for MySQL 8.x [1} - add blacklistd support [2] additional: - regenerate patch for src/util/sys_defs.h Release Notes: ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-3.3.0.RELEASE_NOTES PR: 220224 [1], 225664 [2] Submitted by: Klaus Mayr [1], Koichiro IWAO [2] Changes: head/mail/postfix/Makefile head/mail/postfix/distinfo head/mail/postfix/files/extra-patch-blacklistd head/mail/postfix/files/patch-src__util__sys_defs.h head/mail/postfix/files/patch-src_global_dict__mysql.c head/mail/postfix/files/patch-src_util_sys__defs.h
A commit references this bug: Author: ohauer Date: Sun Feb 25 15:39:08 UTC 2018 New revision: 462961 URL: https://svnweb.freebsd.org/changeset/ports/462961 Log: - update to 3.4-20180222 - add patch for MySQL 8.x [1} - add blacklistd support [2] additional: regenerate patch for src/util/sys_defs.h PR: 220224 [1], 225664 [2] Submitted by: Klaus Mayr [1], Koichiro IWAO [2] Changes: head/mail/postfix-current/Makefile head/mail/postfix-current/distinfo head/mail/postfix-current/files/extra-patch-blacklistd head/mail/postfix-current/files/patch-src__util__sys_defs.h head/mail/postfix-current/files/patch-src_global_dict__mysql.c head/mail/postfix-current/files/patch-src_util_sys__defs.h
Thanks for the patch, it is now included in postfix and postfix-current
(In reply to Olli Hauer from comment #4) If I understand correctly, this patch only adds an option to the port (disabled by default). Any chance the option gets enabled by default and makes it into the pkg? thanks
(In reply to patpro from comment #5) It will be possible in the future, when all FreeBSD versions without blacklistd(8) are EOL
(In reply to Olli Hauer from comment #6) Or can we enable blacklistd option by default depending on OS version?
(In reply to Koichiro Iwao from comment #7) Technical possible, but should be avoided so package options are consistent on all supported FreeBSD releases. 10.4 will be soon EoL, I think after that date it would be an option https://www.freebsd.org/security/security.html#sup
(In reply to Koichiro Iwao from comment #7) Understood, thanks!
Now isn't it a time to enable blacklistd patch by default? All supported version of FreeBSD now have blacklistd, right?
(In reply to Olli Hauer from comment #8) I'm waiting for the postfix package with blacklistd support. When is this patch turned on?
(In reply to FUJIURA Toyonori from comment #11) I'll address the issue.