summaryrefslogtreecommitdiff
path: root/files/arts/software/Code/elektropost/qmail-smtpd.c.privacy.patch
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.local>2015-08-16 16:38:25 +0200
committererdgeist <erdgeist@bauklotz.local>2015-08-16 16:38:25 +0200
commit23f0e1561767dd8a396188e317bae5920d171ea8 (patch)
treea67f44e39ad8a45e42d60634488a65c37f3ad432 /files/arts/software/Code/elektropost/qmail-smtpd.c.privacy.patch
Initial import of my nikola website
Diffstat (limited to 'files/arts/software/Code/elektropost/qmail-smtpd.c.privacy.patch')
-rw-r--r--files/arts/software/Code/elektropost/qmail-smtpd.c.privacy.patch31
1 files changed, 31 insertions, 0 deletions
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 @@
1--- qmail-smtpd.c 2009-07-21 23:32:27.000000000 +0200
2+++ qmail-smtpd.c 2009-07-21 23:30:48.000000000 +0200
3@@ -34,7 +34,7 @@
4 unsigned int databytes = 0;
5 int timeout = 1200;
6 unsigned int spfbehavior = 0;
7-
8+static int authd = 0;
9 const char *protocol = "SMTP";
10
11 #ifdef TLS
12@@ -614,7 +614,10 @@
13 qp = qmail_qp(&qqt);
14 out("354 go ahead\r\n");
15
16- received(&qqt,protocol,local,remoteip,remotehost,remoteinfo,fakehelo);
17+ if(!authd)
18+ received(&qqt,protocol,local,remoteip,remotehost,remoteinfo,fakehelo);
19+ else
20+ received(&qqt,protocol,local,remoteinfo,local,0,local);
21 spfreceived();
22 blast(&hops);
23 hops = (hops >= MAXHOPS);
24@@ -839,7 +842,6 @@
25 char **childargs;
26 substdio ssup;
27 char upbuf[128];
28-int authd = 0;
29
30 int authgetl(void) {
31 int i;