From: martin f. krafft Date: Fri, 22 May 2009 20:40:31 +0000 (+0200) Subject: log injections from trusted relays X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/58edb5a01fa042ca0198af618dcf982dc23f5e5b?hp=14e2811d88509fc228773608c99a8e0e5c7176a4 log injections from trusted relays --- 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