smtpd: remove unused lastsender logic

This commit is contained in:
cinap_lenrek 2016-02-22 21:55:41 +01:00
parent 95d6ca9f3c
commit a9639c6894

View file

@ -447,7 +447,6 @@ void
sender(String *path)
{
String *s;
static char *lastsender;
if(rejectcheck())
return;
@ -479,23 +478,6 @@ sender(String *path)
return;
}
/*
* 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
*/