Dovecotのインストール
tar xvzf dovecot-2.3.10.1.tar.gz
cd dovecot-2.3.10.1
patch -p1 < ../dovecot_systemd.patch
./configure --with-systemdsystemunitdir=auto
make
make install
groupadd -g 97 dovecot
useradd -u 97 -g 97 -d /dev/null -s /sbin/nologin dovecot
useradd -u 98 -d /dev/null -s /sbin/nologin dovenull
mkdir -p /usr/local/var/run/dovecot/{login,empty}
mkdir -p /usr/local/var/lib/dovecot
chown root:dovenull /usr/local/var/run/dovecot/login
chmod 750 -R /usr/local/var/run/dovecot/login
chmod g+s /usr/local/libexec/dovecot/checkpassword-reply
参考
https://plaintext.blog/hosting/mail/qmail.html#dovecot
https://github.com/alexh-name/plaintext.blog/blob/master/src/hosting/mail/qmail.txt