freebsdrocks.net was started originally as nospam.mine.nu.
Dovecot will be using an unsecured connection. Having said that if Rainloop is communicating with Dovecot locally I don't believe this is a security issue.
The first step is to install Dovecot from ports.
# cd /usr/ports/mail/dovecot
# make install
When you run make install it will give you the various configure options available. Make sure the following options are checked:
DOCS
EXAMPLES
LIBWRAP
VPOPMAIL
GSSAPI_NONE
Configuring Dovecot
Dovecot itself uses the dovecot.conf for the main configuration file. What I am going to do here is provide a working dovecot.conf that has all options configured for you that use POP3D-SSL and also IMAPD-SSL for the most secure setup possible. Managesieve is enabled for filtering. Feel free to take a look at dovecot.conf before enabling dovecot.
# cd /usr/local/etc
# mv dovecot bak_dovecot
# mkdir dovecot
# cd dovecot
# tar zxvf ~root/qmail/dovecot2.tgz
login_greeting = MAILHOST IMAP READY.
# cd conf.d
# vi 10-ssl.conf
ssl_cert = </usr/local/etc/apache24/ssl.crt/domain.com.pem
ssl_key = </usr/local/etc/apache24/ssl.key/domain.com.key
# mkdir /var/qmail/supervise/dovecot/log
# cd /var/qmail/supervise/dovecot/log
# cp ~root/qmail/service-any-log-run run
# chmod 0755 run
# vi run
In the run file change the second-to-last line to match the following:
multilog t n1024 s1048576 /var/log/qmail/dovecot \
# cd /var/qmail/supervise/dovecot/
# cp ~root/qmail/dovecot-run run
# chmod 0755 run
Now lets start the dovecot service:
# ln -s /var/qmail/supervise/dovecot /service/
Wait about ten seconds and then run the following command to make sure there are no issues:
# svstat /service/dovecot /service/dovecot/log
# cd /var/log/qmail/
# cd dovecot
# ln -s /var/log/maillog maillog