Difference between revisions of "Dovecot"
From CBLFS
Jump to navigationJump to search (New page: {| style="text-align: left; background-color: AliceBlue;" |- !Download Source: | http://ftp.isc.org/isc/dhcp/dhcp-3.1-history/dhcp-{{Dhcp-Version}}.tar.gz |} {| style="text-align: left; ba...) |
(→Configuring) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|- | |- | ||
!Download Source: | !Download Source: | ||
− | | http:// | + | | http://dovecot.org/releases/{{Dovecot-Version2}}/dovecot-{{Dovecot-Version}}.tar.gz |
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 27: | Line 22: | ||
* [[GnuTLS]] or [[OpenSSL]] (Default) | * [[GnuTLS]] or [[OpenSSL]] (Default) | ||
* [[libgc]] | * [[libgc]] | ||
+ | |||
+ | == Creating the Dovecot User & Group == | ||
+ | |||
+ | groupadd -g 37 dovecot && | ||
+ | useradd -c "Dovecot User" -d /dev/null \ | ||
+ | -u 37 -g dovecot -s /bin/false dovecot | ||
== Configuration Information == | == Configuration Information == | ||
Line 52: | Line 53: | ||
./configure --prefix=/usr --sysconfdir=/etc \ | ./configure --prefix=/usr --sysconfdir=/etc \ | ||
--localstatedir=/var \ | --localstatedir=/var \ | ||
− | --libexecdir=/usr/lib/dovecot/exec | + | --libexecdir=/usr/lib/dovecot/exec && |
+ | make | ||
Install the package: | Install the package: | ||
Line 68: | Line 70: | ||
./configure --prefix=/usr --sysconfdir=/etc \ | ./configure --prefix=/usr --sysconfdir=/etc \ | ||
--libdir=/usr/lib64 --localstatedir=/var \ | --libdir=/usr/lib64 --localstatedir=/var \ | ||
− | --libexecdir=/usr/lib64/dovecot/exec | + | --libexecdir=/usr/lib64/dovecot/exec && |
+ | make | ||
Install the package: | Install the package: | ||
Line 75: | Line 78: | ||
== Configuring == | == Configuring == | ||
+ | Create the init script | ||
+ | |||
+ | cat > /etc/rc.d/init.d/dovecot << "EOF" | ||
+ | #!/bin/bash | ||
+ | # Begin $rc_base/init.d/dovecot | ||
+ | |||
+ | # Based on sysklogd script from LFS-3.1 and earlier. | ||
+ | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org | ||
+ | |||
+ | #$LastChangedBy: bdubbs $ | ||
+ | #$Date: 2006-04-15 17:34:16 -0500 (Sat, 15 Apr 2006) $ | ||
+ | |||
+ | . /etc/sysconfig/rc | ||
+ | . $rc_functions | ||
+ | |||
+ | pidfile=/var/run/dovecot.pid | ||
+ | |||
+ | case "$1" in | ||
+ | start) | ||
+ | boot_mesg "Starting Dovecot Server..." | ||
+ | loadproc -p $pidfile /usr/sbin/dovecot | ||
+ | ;; | ||
+ | |||
+ | stop) | ||
+ | boot_mesg "Stopping Dovecot Server..." | ||
+ | killproc -p $pidfile /usr/sbin/dovecot | ||
+ | ;; | ||
+ | |||
+ | reload) | ||
+ | boot_mesg "Reloading Dovecot Server..." | ||
+ | reloadproc -p $pidfile /usr/sbin/dovecot | ||
+ | ;; | ||
+ | |||
+ | restart) | ||
+ | $0 stop | ||
+ | sleep 1 | ||
+ | $0 start | ||
+ | ;; | ||
+ | |||
+ | status) | ||
+ | statusproc -p $pidfile /usr/sbin/dovecot | ||
+ | ;; | ||
+ | |||
+ | *) | ||
+ | echo "Usage: $0 {start|stop|reload|restart|status}" | ||
+ | exit 1 | ||
+ | ;; | ||
+ | esac | ||
+ | |||
+ | # End $rc_base/init.d/dovecot | ||
+ | EOF | ||
+ | |||
+ | chmod 754 /etc/rc.d/init.d/dovecot | ||
+ | |||
+ | Create the runlevel links | ||
+ | |||
+ | ln -sf ../init.d/dovecot /etc/rc.d/rc0.d/K83dovecot | ||
+ | ln -sf ../init.d/dovecot /etc/rc.d/rc1.d/K83dovecot | ||
+ | ln -sf ../init.d/dovecot /etc/rc.d/rc2.d/K83dovecot | ||
+ | ln -sf ../init.d/dovecot /etc/rc.d/rc3.d/S83dovecot | ||
+ | ln -sf ../init.d/dovecot /etc/rc.d/rc4.d/S83dovecot | ||
+ | ln -sf ../init.d/dovecot /etc/rc.d/rc5.d/S83dovecot | ||
+ | ln -sf ../init.d/dovecot /etc/rc.d/rc6.d/K83dovecot | ||
+ | |||
+ | [[Category:Servers]] |
Latest revision as of 07:29, 5 April 2009
Download Source: | http://dovecot.org/releases/1.1/dovecot-1.1.13.tar.gz |
---|
Contents
Introduction to Dovecot
Dovecot is an open source IMAP and POP3 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.
Project Homepage: http://www.dovecot.org/
Dependencies
Optional
- OpenLDAP
- MIT Krb5 or Heimdal
- vpopmail
- Berkeley DB
- PostgreSQL
- MySQL
- SQLite3
- CLucene
- GnuTLS or OpenSSL (Default)
- libgc
Creating the Dovecot User & Group
groupadd -g 37 dovecot && useradd -c "Dovecot User" -d /dev/null \ -u 37 -g dovecot -s /bin/false dovecot
Configuration Information
To compile OpenLDAP support pass the following to configure:
--with-ldap
To compile PostgreSQL support pass the following to configure:
--with-pgsql
To compile MySQL support pass the following to configure:
--with-mysql
To compile SQLite3 support pass the following to configure:
--with-sqlite
Non-Multilib
Compile the package:
./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/dovecot/exec && make
Install the package:
make install
Multilib
64Bit
Compile the package:
CC="gcc ${BUILD64}" USE_ARCH=64 \ PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ ./configure --prefix=/usr --sysconfdir=/etc \ --libdir=/usr/lib64 --localstatedir=/var \ --libexecdir=/usr/lib64/dovecot/exec && make
Install the package:
make install
Configuring
Create the init script
cat > /etc/rc.d/init.d/dovecot << "EOF" #!/bin/bash # Begin $rc_base/init.d/dovecot # Based on sysklogd script from LFS-3.1 and earlier. # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org #$LastChangedBy: bdubbs $ #$Date: 2006-04-15 17:34:16 -0500 (Sat, 15 Apr 2006) $ . /etc/sysconfig/rc . $rc_functions pidfile=/var/run/dovecot.pid case "$1" in start) boot_mesg "Starting Dovecot Server..." loadproc -p $pidfile /usr/sbin/dovecot ;; stop) boot_mesg "Stopping Dovecot Server..." killproc -p $pidfile /usr/sbin/dovecot ;; reload) boot_mesg "Reloading Dovecot Server..." reloadproc -p $pidfile /usr/sbin/dovecot ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc -p $pidfile /usr/sbin/dovecot ;; *) echo "Usage: $0 {start|stop|reload|restart|status}" exit 1 ;; esac # End $rc_base/init.d/dovecot EOF
chmod 754 /etc/rc.d/init.d/dovecot
Create the runlevel links
ln -sf ../init.d/dovecot /etc/rc.d/rc0.d/K83dovecot ln -sf ../init.d/dovecot /etc/rc.d/rc1.d/K83dovecot ln -sf ../init.d/dovecot /etc/rc.d/rc2.d/K83dovecot ln -sf ../init.d/dovecot /etc/rc.d/rc3.d/S83dovecot ln -sf ../init.d/dovecot /etc/rc.d/rc4.d/S83dovecot ln -sf ../init.d/dovecot /etc/rc.d/rc5.d/S83dovecot ln -sf ../init.d/dovecot /etc/rc.d/rc6.d/K83dovecot