Various notes on installing dovecot on FreeNAS 11. I understand this has no dovecot security applied. This is a tutorial for a LAN lab environment.
-
- If the FreeNAS is a VM, make sure the virtual network adapter permits permiscuous mode. This allows jails to network.
- Create dataset.
- Adjust Jails Setting, disable DHCP
- Create a jail with an IP address and allow.raw_sockets=true. This allows ping. Make sure that VIMAGE is unselected.
- Add storage to jail. Both /usr/ports and /mnt/pool/jails/foo.
- Install vim:
- jls
- sudo jexec foo sh
- # cd /usr/ports/editors/vim
- make install
- Update pkg metadata for jail
- # pkg update
- Install screen, dovecot from package
- # pkg install dovecot
- # pkg install screen
- Edit dovecot stuff
-
Message from dovecot-2.2.33.2_2: --------------------------------------------------------------------- You must create the configuration files yourself. Copy them over to /usr/local/etc/dovecot and edit them as desired: cp -R /usr/local/etc/dovecot/example-config/* \ /usr/local/etc/dovecot The default configuration includes IMAP and POP3 services, will authenticate users agains the system's passwd file, and will use the default /var/mail/$USER mbox files. Next, enable dovecot in /etc/rc.conf: dovecot_enable="YES" --------------------------------------------------------------------- To avoid a risk of mailbox corruption, do not enable the security.bsd.see_other_uids or .see_other_guids sysctls if Dovecot is storing mail for multiple concurrent users (PR 218392). --------------------------------------------------------------------- If you want to be able to search within attachments using the decode2text plugin, you'll need to install textproc/catdoc, and one of graphics/xpdf or graphics/poppler-utils. ---------------------------------------------------------------------
- We’ll skip the imap search features for now
- Let’s create a user inside this jail
- adduser, nologin, use a password
- Verify /var/mail/kathy exists
- Check in on QuickConfiguration
- in /usr/local/etc/dovecot…
- should be using conf.d/auth-system
- conf.d/10-auth: disable_plaintext = no
- /etc/pam.d
- create dovecot:
-
auth required pam_unix.so account required pam_unix.so
- conf.d/10-mail.conf : mail_location = maildir:~/Maildir
- 10-master.conf: comment out pop3
- 10-ssl.conf : ssl=no
- in ../dovecot.conf: remove ‘::’ as interface to listen on
- # service dovecot restart
- Now attempt to hit it with thunderbird, use configs like this:
Next is Outlook
Follow these directions on adding a IMAP account to Outlook.
If it’s really old, microsoft suggests this article.