X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/2ed481b6f64eaeac095033d2e8b2a1df66affb07..519207b89004aa4a4b360767fa30aa48afaa6139:/procmail/rules/admin diff --git a/procmail/rules/admin b/procmail/rules/admin index 188b4c7..a08a038 100644 --- a/procmail/rules/admin +++ b/procmail/rules/admin @@ -2,20 +2,21 @@ * 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: + DEST=admin + :0 *$ !^Delivered-To: .+@$EQ_DOMAIN + *$ !^Received:$RE_SPACE+by $EQ_DOMAIN { - LOG="spamtrap message as it was never delivered to $EQ_DOMAIN -" + LOG="rules/admin: spamtrap message as never passed $EQ_DOMAIN$NL" :0 fw - |$FORMAIL -A'X-Spamtrapped: not delivered to eqdomain' - SPAMTRAPPED + |$FORMAIL -A"X-Spamtrapped: never passed eqdomain" + RETRAIN=spam + INCLUDERC=$PMDIR/handlespam } - :0 - $BASE/.admin/ - # DESTDIR="$BASE/.admin.`echo $EQ_DOMAIN | tr . _" # # :0