Qmail
[Top] [All Lists]

Re: turning off rblsmtpd for domain in smtproutes

To: qmail@list.cr.yp.to
Subject: Re: turning off rblsmtpd for domain in smtproutes
From: Kyle Wheeler <kyle-qmail@memoryhole.net>
Date: Tue, 19 Dec 2006 00:08:25 -0500
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=e0QgJfrcXkI0yK9FGNEEjLfdFJw6EGBqsIHmx0VouZA/Q3JStYeoYolOizFNS0se0Hxmi20Nwrs2VQPCGRN7z5pGQPVXR54bS615Lq8T1s+s1Rrl1d4Hgfo6jwSUo4XSxL3O5fPtUeCrV5Dg5dXoXkG0exyey6Aw9u9oftlKSGY= ;
Domainkey-status: good
In-reply-to: <8560d4e30612181725w74f5782fr92f7698f13d48d06@mail.gmail.com>
Mail-followup-to: qmail@list.cr.yp.to
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <8560d4e30612181725w74f5782fr92f7698f13d48d06@mail.gmail.com>
User-agent: Mutt/1.5.13 (2006-12-07)
On Tuesday, December 19 at 12:25 PM, quoth Dennis Kavadas:
any suggestions as to how i might disable rblsmtpd checking for a domain in my /var/qmail/control/smtproutes file ? in other words, i don't want to RLB check incomming smtp connection for " domain1.com" but still RBL check for "domain2.com" and "domain3.com", all of which are listed in my smtproutes

Well, think about this analytically for a moment: rblsmtpd is a program that does it's magic BEFORE any information is communicated. It examines the contents of the environment (i.e. the IP address of the remote end of the connection) and based on that limited either runs qmail-smtpd or does not. Once qmail-smtpd runs, then the SMTP conversation begins, and qmail-smtpd learns things like who the message is destined for. By that time, however, rblsmtpd is no longer involved.

So the short answer is: no, rblsmtpd does not, and cannot, do what you suggest.

However, it's entirely possible that you could write a patch to qmail-smtpd such that once it knows what addresses the incoming message is destined for it can do any sort of arbitrary filtering.

One way you might do it that would be a little less work would be to use the RCPTCHECK patch by Jay Soffian (http://www.soffian.org/downloads/qmail/qmail-smtpd-doc.html). In the script that you would write to validate the recipient, you can do something like an rblsmtpd check, and based on that you can reject the connection.

~Kyle
--
I beseech you, in the bowels of Christ, think it possible you may be mistaken.
                                                   -- Oliver Cromwell

Attachment: pgpSC9S1Zd370.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>