On Sat, Nov 01, 2003 at 01:55:58AM -0700, Sancho2k.net Lists wrote: > I have set up /var/qmail/control/rbllist as follows (tab separated): >
Newer patches are no longer so picky about the tab separation. See QLDAPNEWS file. > sbl.spamhaus.org reject 127.0.0.2 See http://www.spamhaus.org/SBL/ > relays.ordb.org addheader 127.0.0.2 See http://www.ordb.org/faq/ > list.dsbl.org addheader 127.0.0.2 See http://dsbl.org/main/ > bl.spamcop.net addheader 127.0.0.2 See http://spamcop.net/ > relays.ordb.org reject any See http://ordb.org/ > spamguard.leadmon.net addheader 127.0.0.2 Address is a dialup address > > And my smtpd tcp.cdb has the following rule compiled into it: > > 127.:allow,RELAYCLIENT="",RBL="" > > I set an alias on my loopback interface lo0 for 127.0.0.2 and use telnet > -b 127.0.0.1 <IPADDR> to connect to the smtp port on my qmail-ldap box. > I send a test message and it is successfully delivered to the recipient, > untagged in the header. > I think that should be -b 127.0.0.2. If the message gets delivered you know that the rbl file was parsed succesfully. > My expectation is that the connection would have been dropped, according > to my configuration. > > 1. Is my configuration correct? Depends on the rbl list. If the have a default bad entry for 127.0.0.2 then yes you should either get a 550 error or a X-RBL header in the mail. > 2. If it is correct, is my test valid? I don't know of any other way to > test the RBL setup other than connecting from IP 127.0.0.2. > Normaly it is the simplest to start qmail-smtp from your shell with the tcp-environ(5) needed values set. Tcp-environ(5) is a man file delivered with qmail. Normaly it is enough to set TCPLOCALIP, TCPREMOTEIP and RBL for testing. -- :wq Claudio
