I have set up /var/qmail/control/rbllist as follows (tab separated):

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.

My expectation is that the connection would have been dropped, according to my configuration.

1. Is my configuration correct?
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.


TIA

DS



Reply via email to