]> git.madduck.net Git - etc/mailfilter.git/blobdiff - procmail/rules/admin

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

delete cron mails which will be spooled too
[etc/mailfilter.git] / procmail / rules / admin
index 757454435dc7a0f39f81cb8590867eab84bc4497..a08a038ea9c28821807f6f330ab6359efdd49d6c 100644 (file)
@@ -2,19 +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$NL"
+    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
   }
 
-  DELAY="$DELAY_TONIGHT"
-  DEST=admin
-
 #  DESTDIR="$BASE/.admin.`echo $EQ_DOMAIN | tr . _"
 #
 #  :0