summaryrefslogtreecommitdiff
path: root/qmail-smtpd.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-13 18:21:21 -0700
committerJohn Denker <jsd@av8n.com>2012-07-14 08:53:37 -0700
commit4779e1644fc9dff4eb3e1745a1b3f3119f9bf544 (patch)
treefa3bdd0d42a1f821348e0514f2d928a2aaf2377f /qmail-smtpd.c
parentbc151ae914c24f8d5461b68015c12c0abe629da2 (diff)
Now apply spam filtering to all unauthenticated submissions,
including submissions that are ssl encrypted (but not authenticated)
Diffstat (limited to 'qmail-smtpd.c')
-rw-r--r--qmail-smtpd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/qmail-smtpd.c b/qmail-smtpd.c
index 23f9c89..90f62d9 100644
--- a/qmail-smtpd.c
+++ b/qmail-smtpd.c
@@ -649,7 +649,13 @@ char *arg;
switch (authcmds[i].fun(arg)) {
case 0:
authd = 1;
+// There is a crucial difference between relayclient==0
+// and relayclient=="".
+// Allow relaying for authorized users:
relayclient = "";
+// The following may be used to exempt authorized users
+// from some spam-filtering:
+ if (!env_put("QMAIL_AUTHORIZED=yes")) die_nomem();
remoteinfo = user.s;
if (!env_unset("TCPREMOTEINFO")) die_read();
if (!env_put2("TCPREMOTEINFO",remoteinfo)) die_nomem();