comparison src/dnsbl.cpp @ 174:da0c41b9f672

don't whitelist addresses with embedded spaces
author carl
date Sun, 23 Sep 2007 11:20:12 -0700
parents 83fe0be032c1
children a4d313c2460b
comparison
equal deleted inserted replaced
173:83fe0be032c1 174:da0c41b9f672
982 DNSBLP rejectlist = NULL; // list that caused the reject 982 DNSBLP rejectlist = NULL; // list that caused the reject
983 mlfiPriv &priv = *MLFIPRIV; 983 mlfiPriv &priv = *MLFIPRIV;
984 CONFIG &dc = *priv.pc; 984 CONFIG &dc = *priv.pc;
985 char *rcptaddr = rcpt[0]; 985 char *rcptaddr = rcpt[0];
986 char *loto = to_lower_string(rcptaddr); 986 char *loto = to_lower_string(rcptaddr);
987
988 // some version of sendmail allowed rcpt to:<> and passed it thru to the milters
989 if (strcmp(loto, "<>") == 0) {
990 smfi_setreply(ctx, "550", "5.7.1", "bogus recipient");
991 return SMFIS_REJECT;
992 }
993
987 if (priv.assassin) priv.assassin->mlfi_envrcpt(ctx, loto); 994 if (priv.assassin) priv.assassin->mlfi_envrcpt(ctx, loto);
988 // priv.mailaddr sending original message to loto 995 // priv.mailaddr sending original message to loto
989 CONTEXT &con = *(dc.find_context(loto)->find_context(priv.mailaddr)); 996 CONTEXT &con = *(dc.find_context(loto)->find_context(priv.mailaddr));
990 VERIFYP ver = con.find_verify(loto); 997 VERIFYP ver = con.find_verify(loto);
991 char *fromvalue = con.find_from(priv.mailaddr, true); 998 char *fromvalue = con.find_from(priv.mailaddr, true);