X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/6dc89cc5e53c022184fb14020dd89cbc5a2939fd..bfbb91fbfd5ab6d4e3321fa01db21a5bd96be303:/procmail/rules/admin diff --git a/procmail/rules/admin b/procmail/rules/admin index ee5dd95..a08a038 100644 --- a/procmail/rules/admin +++ b/procmail/rules/admin @@ -2,28 +2,32 @@ * 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 } - DESTDIR="$BASE/.admin.`echo $EQ_DOMAIN | tr . _" - - :0 - { - :0 - * EQ_LOCAL ?? (logcheck|apticron) - ${DESTDIR}.$EQ_LOCAL/ - - :0 - ${DESTDIR}/ - } +# DESTDIR="$BASE/.admin.`echo $EQ_DOMAIN | tr . _" +# +# :0 +# { +# :0 +# * EQ_LOCAL ?? (logcheck|apticron) +# ${DESTDIR}.$EQ_LOCAL/ +# +# :0 +# ${DESTDIR}/ +# } } # vim:ft=procmail