comparison src/dnsbl.cpp @ 172:d3189495ec68 stable-6-0-7

don't do generic rdns filtering on whitelisted recipients
author carl
date Thu, 30 Aug 2007 18:50:00 -0700
parents 6bac960af6b4
children 83fe0be032c1
comparison
equal deleted inserted replaced
171:8deb51871b3d 172:d3189495ec68
1037 char buf[maxlen]; 1037 char buf[maxlen];
1038 snprintf(buf, sizeof(buf), rejectlist->message, adr, adr); 1038 snprintf(buf, sizeof(buf), rejectlist->message, adr, adr);
1039 smfi_setreply(ctx, "550", "5.7.1", buf); 1039 smfi_setreply(ctx, "550", "5.7.1", buf);
1040 return SMFIS_REJECT; 1040 return SMFIS_REJECT;
1041 } 1041 }
1042 char *msg = con.generic_match(priv.client_name); 1042 if (st == oksofar) {
1043 if (msg) { 1043 char *msg = con.generic_match(priv.client_name);
1044 // reject the recipient based on generic reverse dns 1044 if (msg) {
1045 char buf[maxlen]; 1045 // reject the recipient based on generic reverse dns
1046 snprintf(buf, sizeof(buf), msg, priv.client_name); 1046 char buf[maxlen];
1047 smfi_setreply(ctx, "550", "5.7.1", buf); 1047 snprintf(buf, sizeof(buf), msg, priv.client_name);
1048 return SMFIS_REJECT; 1048 smfi_setreply(ctx, "550", "5.7.1", buf);
1049 return SMFIS_REJECT;
1050 }
1049 } 1051 }
1050 if (st == black) { 1052 if (st == black) {
1051 // reject the recipient based on blacklisting either from or to 1053 // reject the recipient based on blacklisting either from or to
1052 smfi_setreply(ctx, "550", "5.7.1", "no such user"); 1054 smfi_setreply(ctx, "550", "5.7.1", "no such user");
1053 return SMFIS_REJECT; 1055 return SMFIS_REJECT;