Title: problem using qmail queue patch if the connection is not listed in /etc/tcp.smtp

Hello!

        I'm doing a strong perl spamfilter that uses qmail qfilter with the qmail QUEUE patch from the same author. Everything is nice except for one thing: it's protecting the internet from US and not US _from_ the internet. I mean, the filters executes on outgoing mails and not on incoming mails. I believe that /etc/tcp.smtp has something to do about it (the filter requires the QMAILQUEUE environment variable to be set), and my /etc/tcp.smtp file looks like this:

127.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/spamfilter/spamfilter.sh"
192.168.6.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/spamfilter/spamfilter.sh"
192.168.12.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/spamfilter/spamfilter.sh"
172.16.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/spamfilter/spamfilter.sh"

        I believe that the variable is set _only_ if the connections came from 127.0.0.0/8, 192.168.6.0/24, 192.168.12.0/24 and 172.16.0.0/16 and _not_ if it's coming from the outside.

        Any ideas?

--
Maximiliano A. Kolus
Network Administrator
<[EMAIL PROTECTED]>
Bolsa De Comercio Rosario - Argentina
+54 341 4213471 / 78 ext 2291

PS: If you're going to say RTFM, tell me where is TFM.

Reply via email to