Jump to content

Ubuntu/Dovecot/Installing for Source

From MattWiki
noteThis Page was written with Ubuntu 14.04 LTS in mind, and may not work correctly with other versions or distributions.

This page will walk you threw installing Dovecot 2.2.18 on a Ubuntu 14.04 LTS server.

apt-get install -y git gcc make nginx mysql-server-5.5 \
   mysql-client-5.5 libmysqld-dev libdb-dev libssl-dev
echo "postfix:x:89:89::/var/spool/postfix:/sbin/nologin" >> /etc/passwd
echo "postdrop:x:90:90::/var/spool/postfix:/sbin/nologin" >> /etc/passwd
echo "postfix:x:89:" >> /etc/group
echo "postdrop:x:90:" >> /etc/group
mkdir /var/src
cd /var/src/
wget ftp://ftp.reverse.net/pub/postfix/official/postfix-2.11.6.tar.gz
wget http://dovecot.org/releases/2.2/dovecot-2.2.18.tar.gz
tar -xzf postfix-2.11.6.tar.gz
tar -xzf dovecot-2.2.18.tar.gz
cd postfix-2.11.6/
make makefiles 'CCARGS=-DHAS_MYSQL \
   -I/usr/include/mysql -DUSE_TLS' 'AUXLIBS=-L/usr/lib/mysql \
   -lmysqlclient -lz -lm -lssl -lcrypto' && make
#make install
cd /var/src/dovecot-2.2.18/
./configure && make && make install