Next Previous Contents

3.1 From scratch

You'll need: patch, make, tar, gzip, gunzip, gcc, and all the files needed to compile courier.

  1. Get the source code of courier-imap and my patch from

    http://www.commedia.it/ccontavalli/

    http://www.courier-mta.org/

  2. Unpack the courier tarball somewhere (/usr/src is good - I assume the .tar.gz is in your home directory)

     
    $ cd /usr/src
    $ tar -xvzf ~/courier-imap.tar.gz
        
    

  3. Unpack the patch somewhere in your hard drive (/usr/src is good - Same assumption)

     
    $ tar -xvzf ~/courier_patch.tar.gz
        
    

  4. Apply the patch

    1. Get in the directory of the courier sources
      $ cd courier-0.x.x
          
      
    2. If provided, check the README for your specific courier version (README.courier_version). It should tell the exact diff file to use to patch your version of courier.
    3. Give the following command using instead of courier_0.x.x.diff the file found in the previous step:
       
      $ cat ../courier_patch/courier_0.x.x.diff | patch -p1
          
      

  5. Compile courier

    You should follow the steps indicated in courier documentation. It would be good to include support for authdaemon and for some kind of database :-).


Next Previous Contents