From 23f0e1561767dd8a396188e317bae5920d171ea8 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 16 Aug 2015 16:38:25 +0200 Subject: Initial import of my nikola website --- .../Code/elektropost/qmail-smtpd.c.privacy.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 files/arts/software/Code/elektropost/qmail-smtpd.c.privacy.patch (limited to 'files/arts/software/Code/elektropost/qmail-smtpd.c.privacy.patch') diff --git a/files/arts/software/Code/elektropost/qmail-smtpd.c.privacy.patch b/files/arts/software/Code/elektropost/qmail-smtpd.c.privacy.patch new file mode 100644 index 0000000..d9ba4fd --- /dev/null +++ b/files/arts/software/Code/elektropost/qmail-smtpd.c.privacy.patch @@ -0,0 +1,31 @@ +--- qmail-smtpd.c 2009-07-21 23:32:27.000000000 +0200 ++++ qmail-smtpd.c 2009-07-21 23:30:48.000000000 +0200 +@@ -34,7 +34,7 @@ + unsigned int databytes = 0; + int timeout = 1200; + unsigned int spfbehavior = 0; +- ++static int authd = 0; + const char *protocol = "SMTP"; + + #ifdef TLS +@@ -614,7 +614,10 @@ + qp = qmail_qp(&qqt); + out("354 go ahead\r\n"); + +- received(&qqt,protocol,local,remoteip,remotehost,remoteinfo,fakehelo); ++ if(!authd) ++ received(&qqt,protocol,local,remoteip,remotehost,remoteinfo,fakehelo); ++ else ++ received(&qqt,protocol,local,remoteinfo,local,0,local); + spfreceived(); + blast(&hops); + hops = (hops >= MAXHOPS); +@@ -839,7 +842,6 @@ + char **childargs; + substdio ssup; + char upbuf[128]; +-int authd = 0; + + int authgetl(void) { + int i; -- cgit v1.2.3