summaryrefslogtreecommitdiff
path: root/doc/Old/README.djbdns
blob: c87897b2eda35667a154f7feab1e239d7731ebb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
QMAIL + DJBDNS
==============

You may want to link qmail's DNS lookups
against DJBDNS and not against libresolv
as provided by Nikola Vladov.

Here's the provisionell bootstrapping recipe 

1. Step: 

- Install: qmail as ./qmail-1.03 
 
- make qmail (after you have raised accounts + dirs)

- Install: djbdns as ./djbdns-1.05.
  *) You may need to fix "error.h" in the above djbdns-dir:
     Edit conf-cc:

      cc -O2 -include /usr/include/errno.h

  **) You want to increase the UDP buffer from 513 to 4097 byte:
      Edit dns_transmit.c:

	int dns_transmit_get(struct dns_transmit *d,const iopause_fd *x,const struct taia *when)
        {
          char udpbuf[4097]; 	/* instead original buffer [513] byte */
          unsigned char ch;

- Now do 'make setup' in djbdns-1.05.


2. Step:

- Download:  http://riemann.fmi.uni-sofia.bg/vladov/ftp/djbdns+qmail.tar.gz
  (it is also part of SPAMCONTROL).

- Untar Nikola's patch in djbdns-1.05 (and read his README.qmail).

- Adjust the path to the qmail dir: conf-qmail (if necessary).

- Install Nikola's patch: make -f Makefile.qmail 

- Test the patch: make -f Makefile.qmail check


3. Step:

- Untar SPAMCONTROL in the qmail-1.03 source directory.

- Edit conf-djbdns and include the path to djbdns-1.05 (if necessary).

- Run install_spamcontrol.sh and see in the spamcontrol.log if changes applied.

- (Re)Make qmail: make setup check.


4. Step: 

- Enjoy and relax. Now qmail-remote + qmail-smtpd use djbdns libs instead of libresolv.


--eh. 2010-04-26