
kyle-qmail at memoryhole
Mar 6, 2008, 7:24 AM
Post #4 of 7
(2946 views)
Permalink
|
On Thursday, March 6 at 04:11 AM, quoth Payal Rathod: >To cut out spam, I am blocking mails from servers with no reverse >DNS. This was done by giving -vDRp option to tcpserver and populating >tcp.smtp like below. >=:allow >:allow,RBLSMTPD="-Bad RDNS" > >This seemed to work fine for a few months but one day while doing >routine checks, I found lines like below and out of curiosity did a rdns >check immediately, but found that they had proper rdns configured. > >rblsmtpd: 122.164.54.244 pid 89340: 553 Bad RDNS >rblsmtpd: 196.205.163.201 pid 89339: 553 Bad RDNS > >What seems to be wrong? Well, let's see. When tcpserver does it's reverse-dns lookup (to fill $TCPREMOTEHOST), it will get: $ dnsname 122.164.54.244 abts-tn-dynamic-244.54.164.122.airtelbroadband.in And then when tcpserver does the -p ("paranoid") lookup: $ dnsip abts-tn-dynamic-244.54.164.122.airtelbroadband.in $ That's not good; let's try a different tool: $ host abts-tn-dynamic-244.54.164.122.airtelbroadband.in Host abts-tn-dynamic-244.54.164.122.airtelbroadband.in not found: 3(NXDOMAIN) That name fails to resolve. Thus, the $TCPREMOTEHOST variable will be removed, because you told tcpserver to be paranoid. It looks like tcpserver is doing precisely what you told it to. What seems to be the problem? ~Kyle -- To invent, you need a good imagination and a pile of junk. -- Thomas Jefferson
|