summaryrefslogtreecommitdiff
path: root/sys/src/cmd/upas
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-02-22 21:55:41 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-02-22 21:55:41 +0100
commita9639c68947a9872cacd8a9629df097fe009503b (patch)
treec863cf0843ae351feaf4bf896660f529d739d03f /sys/src/cmd/upas
parent95d6ca9f3c05283057f1542f3af37c8741cbc11b (diff)
smtpd: remove unused lastsender logic
Diffstat (limited to 'sys/src/cmd/upas')
-rw-r--r--sys/src/cmd/upas/smtp/smtpd.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/src/cmd/upas/smtp/smtpd.c b/sys/src/cmd/upas/smtp/smtpd.c
index 84fabbd21..85fbb098a 100644
--- a/sys/src/cmd/upas/smtp/smtpd.c
+++ b/sys/src/cmd/upas/smtp/smtpd.c
@@ -447,7 +447,6 @@ void
sender(String *path)
{
String *s;
- static char *lastsender;
if(rejectcheck())
return;
@@ -480,23 +479,6 @@ sender(String *path)
}
/*
- * if the last sender address resulted in a rejection because the sending
- * domain didn't exist and this sender has the same domain, reject
- * immediately.
- */
- if(lastsender){
- if (strncmp(lastsender, s_to_c(path), strlen(lastsender)) == 0){
- filterstate = REFUSED;
- rejectcount++;
- reply("554 5.1.8 Sender domain must exist: %s\r\n",
- s_to_c(path));
- return;
- }
- free(lastsender); /* different sender domain */
- lastsender = 0;
- }
-
- /*
* see if this ip address, domain name, user name or account is blocked
*/
logged = 0;