X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/0f4bcee75353935ff9bc605f7e0b31d12e302605..d34f5c59bb81a713876c58ffebd5a3f19ee7a877:/procmail/rules/admin diff --git a/procmail/rules/admin b/procmail/rules/admin index 2873572..7ba755c 100644 --- a/procmail/rules/admin +++ b/procmail/rules/admin @@ -2,18 +2,19 @@ * ORIG_DOMAIN ?? ^admin\.madduck\.net$ { # require that messages sent to foo=bar@admin.madduck.net have passed the - # machine at bar, meaning have been Delivered-To there. + # machine at bar, meaning have been Delivered-To there, or originating from + # there: :0 *$ !^Delivered-To: .+@$EQ_DOMAIN + *$ !^Received:$RE_SPACE+by $EQ_DOMAIN { - LOG="spamtrap message as it was never delivered to $EQ_DOMAIN$NL" + LOG="rules/admin: spamtrap message as never passed $EQ_DOMAIN$NL" + SPAMTRAPPED="never passed eqdomain" :0 fw - |$FORMAIL -A'X-Spamtrapped: not delivered to eqdomain' - SPAMTRAPPED + |$FORMAIL -A"X-Spamtrapped: $SPAMTRAPPED" } - :0 - { DEST=admin } + DEST=admin # DESTDIR="$BASE/.admin.`echo $EQ_DOMAIN | tr . _" #