Skip to content

Instantly share code, notes, and snippets.

@gabetax
Created August 30, 2010 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabetax/557798 to your computer and use it in GitHub Desktop.
Save gabetax/557798 to your computer and use it in GitHub Desktop.
qmail-klepto - blackhole all emails to be delivered locally
diff -u qmail-1.03/qmail-send.c qmail-1.03-patch/qmail-send.c
--- qmail-1.03/qmail-send.c Mon Jun 15 05:53:16 1998
+++ qmail-1.03-patch/qmail-send.c Fri May 7 13:40:17 2004
@@ -159,7 +159,20 @@
if (!stralloc_cat(&rwline,&addr)) return 0;
if (!stralloc_0(&rwline)) return 0;
- return 2;
+
+ /* 2003-08-29
+ * qmail-klepto patch; Version 1, r2
+ *
+ * Gabe Martin-Dempesy <gabe@mudbugmedia.com>
+ * Mudbug Media
+ *
+ * The return value '2' specifies the qmail-send daemon to pass the message
+ * onto qmail-remote. By changing the code to 1, we ensure the message is
+ * always delivered with qmail-local (and then can be caught by a global
+ * handler).
+ */
+ /* return 2; */
+ return 1;
}
void senderadd(sa,sender,recip)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment