diff options
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.patch | 31 |
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; | ||
