UmVirt LFS Package info

DB commit: c78e95157185199cceff370fa5b5f1dd2a1be2fa
APP commit: cac3f2066a9a05955b29d720b9b9b14f534d21c2

dovecot

Dovecot is an Internet Message Access Protocol (IMAP) and Post Office Protocol (POP) server, written primarily with security in mind. Dovecot aims to be lightweight, fast and easy to set up as well as highly configurable and easily extensible with plugins.

Package info

Codename: dovecot
Source file: dovecot-2.3.2.1.tar.gz
Source directory: dovecot-2.3.2.1
Package URL: https://umvirt.com/linux/downloads/0.1/packages/d/dovecot-2.3.2.1.tar.gz
Package md5-checksum URL: https://umvirt.com/linux/downloads/0.1/packages/d/dovecot-2.3.2.1.tar.gz.md5sum
Dependances: icu, sqlite, Linux-PAM, lua, openldap-client, postgresql-client, mariadb-client, libcap-pam, libtirpc.
Dependance of: exim.
Patches: *** NO PATCHES FOUND ***
Addons: *** NO ADDONS FOUND ***
Nestings *** NO NESTINGS FOUND ***
Configuration script:
sed -e "s;#include ;&\n#include ;" \
    -i src/auth/mycrypt.c

CFLAGS+=" -I/usr/include/tirpc" \
LDFLAGS+=" -ltirpc" \
./configure --prefix=/usr                          \
            --sysconfdir=/etc                      \
            --localstatedir=/var                   \
            --docdir=/usr/share/doc/dovecot-2.3.2.1 \
            --with-systemdsystemunitdir=/lib/systemd/system \
            --with-ssl \
            --disable-static \
            --with-ldap \
            --with-pgsql \
            --with-mysql \
            --with-sqlite 

Build script:
make

Install script:
#add user
groupadd -g 42 dovecot &&
useradd -c "Dovecot unprivileged user" -d /dev/null -u 42 \
        -g dovecot -s /bin/false dovecot &&
groupadd -g 43 dovenull &&
useradd -c "Dovecot login user" -d /dev/null -u 43 \
        -g dovenull -s /bin/false dovenull

#install files
make install

#install configuration
cp -rv /usr/share/doc/dovecot-2.3.2.1/example-config/* /etc/dovecot

sed -i '/^\!include / s/^/#/' /etc/dovecot/dovecot.conf &&
chmod -v 1777 /var/mail &&
cat > /etc/dovecot/local.conf << "EOF"
protocols = imap
ssl = no
# The next line is only needed if you have no IPv6 network interfaces
listen = *
mail_location = mbox:~/Mail:INBOX=/var/mail/%u
userdb {
  driver = passwd
}
passdb {
  driver = shadow
}
EOF