From e86438abb235192645607a71137b5acdf208cc00 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 29 Feb 2008 15:42:15 +0100 Subject: [PATCH 1/1] fix rules/admin eqdomain spamtrapping --- procmail/rules/admin | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/procmail/rules/admin b/procmail/rules/admin index 8598da6..7ba755c 100644 --- a/procmail/rules/admin +++ b/procmail/rules/admin @@ -2,14 +2,16 @@ * 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" } DEST=admin -- 2.39.5