Hi Ben,

> In my setup, I see the tcp.smtp.cdb file getting updated regularly, seeming
> to indicate perhaps that the pop-before-smtp may actually be working.  Is
> there anyway to verify the contents of the cdb file to see if it actually
> matches with the current relay table contents?

To check if a IP address is listed:

TCPREMOTEIP=<ip> tcprulescheck tcp.smtp.cdb

Example for an IP that's allowed to relay:

$ TCPREMOTEIP=62.226.202.17 tcprulescheck /etc/tcp.smtp.cdb 
rule 62.226.202.17:
set environment variable RELAYCLIENT=
set environment variable RBLSMTPD=
allow connection

Or use cdbdump from the cdb package to dump the whole .cdb file:

http://cr.yp.to/cdb/cdbmake.html

Jonas


Reply via email to