From 58edb5a01fa042ca0198af618dcf982dc23f5e5b Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 22 May 2009 22:40:31 +0200 Subject: [PATCH 1/1] log injections from trusted relays --- procmail/log-injected | 13 +++++++++++++ procmail/procmailrc | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 procmail/log-injected diff --git a/procmail/log-injected b/procmail/log-injected new file mode 100644 index 0000000..eb1c699 --- /dev/null +++ b/procmail/log-injected @@ -0,0 +1,13 @@ +:0 +*$ ^Received: from \/.+by $RE_MAILRELAYS \(postfix-inject\) +{ + :0 + *$ MATCH ?? ^\/${RE_NOT_SPACE}+ + { TRUSTED_RELAY="$MATCH" } + + LOG="log-inject: message was injected by $TRUSTED_RELAY$NL" + + TRUSTED_RELAY +} + +# vim:ft=procmail diff --git a/procmail/procmailrc b/procmail/procmailrc index 117f552..1271fda 100755 --- a/procmail/procmailrc +++ b/procmail/procmailrc @@ -15,6 +15,8 @@ INCLUDERC=$PMDIR/defines INCLUDERC=$PMDIR/logging #INCLUDERC=$PMDIR/msgid-index +INCLUDERC=$PMDIR/log-injected + INCLUDERC=$PMDIR/ignore INCLUDERC=$PMDIR/smsmail -- 2.39.5