diff options
Diffstat (limited to 'qmail-smtpd.c')
-rw-r--r-- | qmail-smtpd.c | 6 |
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(); |