Created
August 30, 2010 18:16
-
-
Save gabetax/557798 to your computer and use it in GitHub Desktop.
qmail-klepto - blackhole all emails to be delivered locally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]> | |
+ * 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
http://mudbugmedia.com/blog/2010/09/21/is-your-development-server-leaking-email/