Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/blocklist/diff Add one more place to notify blo...



details:   https://anonhg.NetBSD.org/src/rev/56241f64200b
branches:  trunk
changeset: 955256:56241f64200b
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Sep 25 12:52:59 2020 +0000

description:
Add one more place to notify blocklistd

diffstat:

 external/bsd/blocklist/diff/postfix.diff |  16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r 49a0c9cbdcf2 -r 56241f64200b external/bsd/blocklist/diff/postfix.diff
--- a/external/bsd/blocklist/diff/postfix.diff  Fri Sep 25 12:52:12 2020 +0000
+++ b/external/bsd/blocklist/diff/postfix.diff  Fri Sep 25 12:52:59 2020 +0000
@@ -80,3 +80,19 @@
  DPADD+=       ${LIBPTLS} ${LIBSSL} ${LIBCRYPTO}
  LDADD+=       ${LIBPTLS} -lssl -lcrypto
  
+Index: dist/src/smtpd/smtpd.c
+===================================================================
+RCS file: /cvsroot/src/external/ibm-public/postfix/dist/src/smtpd/smtpd.c,v
+retrieving revision 1.17
+diff -u -u -r1.17 smtpd.c
+--- dist/src/smtpd/smtpd.c     18 Mar 2020 19:05:20 -0000      1.17
++++ dist/src/smtpd/smtpd.c     25 Sep 2020 12:51:52 -0000
+@@ -5795,6 +5795,8 @@
+                  || strcmp(state->reason, REASON_LOST_CONNECTION)) {
+           msg_info("%s after %s from %s",
+                    state->reason, state->where, state->namaddr);
++          if (strcmp(state->where, SMTPD_CMD_AUTH) == 0)
++              pfilter_notify(1, vstream_fileno(state->client));
+       }
+     }
+ 



Home | Main Index | Thread Index | Old Index