L. A. wrote:
Hi.

I need someone point me to right direction in my idea or just tell me what i am 
doing wrong.

I have few qmt servers and server with my own rbl database based on rbldnsd.

All of qmt servers works as usual mailservers and relays for few trusted 
networks.
By default, i add few blacklist (spamhaus, sorbs, my local blacklist) into  
/var/qmail/control/blacklists
For relayed network i always add into tcp.smtp option: RBLSMTPD="" and all 
works good.

But now i want that trusted relay network also was checked via blacklist, but 
only my local, so i can have centralized block for spamming local user as 
example.

I try add next options into my tcp.smtp:
RBLSMTPD="/usr/bin/rblsmtpd"
BLACKLIST="-r blacklist.mynetwork.net"
(same as in supervise/smtp/run)

Example of one of line:
192.168.:allow,RELAYCLIENT="",DKSIGN="/var/qmail/control/domainkeys/%/private",RBLSMTPD="/usr/bin/rblsmtpd",BLACKLIST="-r
 blacklist.mynetwork.net",MAXCONNIP="1",DIEMSG="421 Service unavailable"

service qmail cdb
I suppose, that users from 192.168 network now must be checked via my blacklist 
server: blacklist.mynetwork.net but it's works another way:
now all clients from network 192.168 checked in blacklists, but from lists that 
was placed into /var/qmail/control/blacklists.

Is there any way to get behaviour that i want?

If you list your blacklist first and there is a match, then it will not check the other blacklists. To really do what you want, I believe you would have to have an empty blacklists file, and then define the blacklists for each entry in your tcp.smtp file.


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


Reply via email to