5. Install Dovecot IMAP, IMAP-SSL, POP3 and POP3-SSL servers
cd /usr/ports/mail/dovecot
make install
It will ask questions like "add group dovecot? add user dovecot ?" - just answer 'y' to them.
5.1 configure dovecot
cd /usr/local/etc
cp dovecot.conf.sample dovecot.conf
echo dovecot_enable="YES" >> /etc/rc.conf
Change these in dovecot.conf
protocols = imap pop3 imaps pop3s
disable_plaintext_auth = no
default_mail_env = maildir:%h/Maildir
6. Create SSL certificates for example.com (it should be your actual domain) If you are purchasing a cert from a CA then just copy them to the paths in master.cf. If not create them using dovecot's script mkcert.sh
cd /usr/ports/mail/dovecot/work
cd dovecot-1.0.alpha4/doc
(note: the dovecot-1.xx version may be different for you)
nano dovecot-openssl.conf
Edit the data there to match your domain; you also may want to edit mkcert.sh and replace dovecot.pem with example.com.key and example.com.crt - but its upto you
Now create the certs using
./mkcert.sh
and then copy them to the path given in page SB03 in master.cf
In my infinite ignorance I had missed documenting this step completely! Thanks again to Ken for pointing out this
Prev
SB03 Next
SB05