• Bez kategorii

dovecot-2.0.6

Dovecot is an open source IMAP and POP3 email server for Linux/UNIX-like systems, written with security primarily in mind. Dovecot is an excellent choice for both small and large installations. It’s fast, simple to set up, requires no special administration and it uses very little memory.

Source: http://dovecot.org/

Dovecot 2.0.6 is bugfix release and should be more stable than previous versions of 2.0.x.

Below you can find transcript of configuration and compilation session of Dovecot server and a script which I use for this purpose (as attachement).

Download sources and unpack:

root@feniks:~# su - soft
soft@feniks:~% cd dovecot
soft@feniks:~/dovecot% wget http://dovecot.org/releases/2.0/dovecot-2.0.6.tar.gz
--2010-10-22 09:10:05--  http://dovecot.org/releases/2.0/dovecot-2.0.6.tar.gz
Resolving dovecot.org... 62.236.108.70
Connecting to dovecot.org|62.236.108.70|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3155389 (3.0M) [application/x-gzip]
Saving to: `dovecot-2.0.6.tar.gz'

soft@feniks:~/dovecot% wget http://dovecot.org/releases/2.0/dovecot-2.0.6.tar.gz.sig
--2010-10-22 09:12:56--  http://dovecot.org/releases/2.0/dovecot-2.0.6.tar.gz.sig
Resolving dovecot.org... 62.236.108.70
Connecting to dovecot.org|62.236.108.70|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 198 
Saving to: `dovecot-2.0.6.tar.gz.sig'

soft@feniks:~/dovecot% gpg --verify dovecot-2.0.6.tar.gz.sig dovecot-2.0.6.tar.gz
gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
gpg: Signature made Thu Oct 21 20:07:39 2010 CEST using DSA key ID 40558AC9
gpg: Good signature from "Timo Sirainen "
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: E643 F0BD FDCD 04D9 FFCB  6279 C948 5251 4055 8AC9
soft@feniks:~/dovecot% gtar -zxf dovecot-2.0.6.tar.gz 

Check configuration options:

soft@feniks:~/dovecot% ./dovecot-2.0.6/configure --help|less

Replace version number in configuration script and run:
NOTE: if you set –sysconfdir, you need to set parent directory, eg. „/data/etc”, not „/data/etc/dovecot”

soft@feniks:~/dovecot% gsed "s/2.0.3/2.0.6/g" drf_dovecot-2.0.3_conf > drf_dovecot-2.0.6_conf
soft@feniks:~/dovecot% chmod 754 drf_dovecot-2.0.6_conf
soft@feniks:~/dovecot% ./drf_dovecot-2.0.6_conf
 soft@feniks:~/dovecot% ./drf_dovecot-2.0.6_conf
cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12
usage: cc [ options] files.  Use 'cc -flags' for details
PATH=/usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/ucb
CFLAGS=-xO3 -xautopar
CPPFLAGS=-I/usr/local/ssl/include -I/usr/local/openldap/include -I/usr/local/include
CXXFLAGS=-xO3 -xautopar
LDFLAGS=-L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/openldap/lib -R/usr/local/openldap/lib -L/usr/local/lib -R/usr/local/lib
=============================================
dmake clean [y|n] ?
n
=============================================
configure [y|n] ?
y
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/mkdir -p
checking for gawk... gawk
...

Configuration summary:

Install prefix . : /usr/local/dovecot-2.0.6
File offsets ... : 64bit
I/O polling .... : poll
I/O notifys .... : none
SSL ............ : yes (OpenSSL)
GSSAPI ......... : no
passdbs ........ : static passwd passwd-file shadow pam checkpassword ldap
                 : -bsdauth -sia -sql -vpopmail
userdbs ........ : static prefetch passwd passwd-file checkpassword ldap
                 : -sql -vpopmail -nss
SQL drivers .... :
                 : -pgsql -mysql -sqlite

Compilation and test:

dmake [y|n] ?
y
dmake  all-recursive
...
Compillation successful
dmake test || dmake check [y|n] ?
y
dmake: Fatal error: Don't know how to make target `test'
Making check in .
...

Switch to root and install:

soft@feniks:~/dovecot% exit
root@feniks:~# cd /home/soft/dovecot/dovecot-2.0.6 
root@feniks:/home/soft/dovecot/dovecot-2.0.6# dmake install
Making install in .
/bin/bash ./update-version.sh . .

Może Ci się również spodoba

Dodaj komentarz