From qmail-return-121912-nelson=crynwr.com@list.cr.yp.to Sat Nov 06 12:34:01 2004 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["2271" "" "6" "November" "2004" "12:27:02" "-0000" "Nikola Vladov" "vladov@riemann.fmi.uni-sofia.bg" nil "61" "qmail + djbdns" "^From:" nil nil "11" nil "qmail + djbdns" nil nil nil nil nil nil] nil) Return-Path: Delivered-To: nelson-lists@desk.crynwr.com Received: (qmail 10508 invoked by uid 500); 6 Nov 2004 12:34:01 -0000 Delivered-To: nelson@desk.crynwr.com Received: (qmail 10495 invoked from network); 6 Nov 2004 12:34:01 -0000 DomainKey-Status: no signature Received: from unknown (HELO ns.crynwr.com) (192.203.178.14) by desk.crynwr.com with SMTP; 6 Nov 2004 12:34:01 -0000 Received: (qmail 9037 invoked by uid 500); 6 Nov 2004 12:33:52 -0000 Delivered-To: nelson@crynwr.com Received: (qmail 9022 invoked from network); 6 Nov 2004 12:33:50 -0000 Received: from stoneport.math.uic.edu (131.193.178.160) by pdam.crynwr.com with SMTP; 6 Nov 2004 12:33:50 -0000 Received: (qmail 25380 invoked by uid 1004); 6 Nov 2004 12:34:10 -0000 Mailing-List: contact qmail-help@list.cr.yp.to; run by ezmlm Precedence: bulk Delivered-To: mailing list qmail@list.cr.yp.to Received: (qmail 18267 invoked from network); 6 Nov 2004 12:27:29 -0000 Received: from riemann.fmi.uni-sofia.bg (62.44.100.74) by stoneport.math.uic.edu with SMTP; 6 Nov 2004 12:27:29 -0000 Received: (qmail 14854 invoked by uid 1001); 6 Nov 2004 12:27:02 -0000 Message-ID: <20041106122702.14853.qmail@riemann.fmi.uni-sofia.bg> From: Nikola Vladov To: qmail@list.cr.yp.to Subject: qmail + djbdns Date: 6 Nov 2004 12:27:02 -0000 Hi, if someone is interesting to link qmail with djbdns instead of libresolv it is very easy. Less memory and in my opinon better than res_query(). The package is very small. It commes with qmail-dnstest (executable for test -- ./qmail-dnstest yahoo.com) -rw-r--r-- 1000/1000 2541 Makefile.qmail -rw-r--r-- 1000/1000 1596 README.qmail -rw-r--r-- 1000/1000 234 conf-qmail -rw-r--r-- 1000/1000 2889 dns_qmail.c -rw-r--r-- 1000/1000 375 dns_qmail.sh -rw-r--r-- 1000/1000 1270 dns_qmail_cname.c -rw-r--r-- 1000/1000 1315 dns_qmail_ip.c -rw-r--r-- 1000/1000 2486 qmail-dnstest.c And I put olso one file here. ============================ README.qmail =========================== This is a port of djbdns functions to qmail. Here are simple instructions: tar -xvzf qmail-1.03.tar.gz or netqmail-1.05.tar.gz tar -xvzf djbdns-1.05.tar.gz cd qmail-1.03 && make cd ../djbdns-1.05 && make store the files from this package in the djbdns-1.05 dir (this package does not modify any file in djbdns-1.05 dir) and exec: make -f Makefile.qmail make -f Makefile.qmail check Thats all! ------------------- You can now reload qmail-daemons to use djbdns!!! instead of res_query() cd ../qmail-1.03 rm qmail-smtpd qmail-remote ./load qmail-remote control.o constmap.o timeoutread.o timeoutwrite.o \ timeoutconn.o tcpto.o now.o ip.o ipalloc.o ipme.o quote.o ndelay.a \ case.a sig.a open.a lock.a seek.a getln.a stralloc.a alloc.a \ substdio.a str.a fs.a auto_qmail.o ../djbdns-1.05/qmail.a \ `cat socket.lib` If you use SPAMCONTROL -- the next work fine. ./load qmail-smtpd rcpthosts.o recipients.o commands.o timeoutread.o \ timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o \ received.o date822fmt.o now.o qmail.o wildmat.o cdb.a fd.a wait.a \ datetime.a getln.a open.a sig.a case.a stralloc.a alloc.a \ substdio.a str.a fs.a auto_qmail.o ../djbdns-1.05/qmail.a \ `cat socket.lib` Remarks: 1) not use error.* from qmail by linking. use qmail.a from djbdns-1.05 2) not use dns.o from qmail nor -lresolv. use qmail.a from djbdns-1.05 3) you may need to edit conf-qmail Enjoy http://cr.yp.to/djbdns.html http://cr.yp.to/qmail.html http://riemann.fmi.uni-sofia.bg/vladov/ftp/qmail+djbdns.tar.gz Nikola Vladov