Setting up UW-Imapd for imaps and pop3s services
Thanks to whomever compiled the imapd service! I like it's simplicity over the Cyrus one and I couldn't get the source to natively compile; and was too lazy to set up a cross compile environment.
This was successfull on Unslung 5.5. The MTA used was Postfix from the NSLU2 IPKG repository with 'mailbox_transport' not set in 'main.cf'
Make sure that openssl, imap and imap-libs are installed.
Add entries to /etc/services file. imaps 993/tcp pop3s 995/tcp Add entries to /etc/inetd.conf file. pop3s stream tcp nowait root /opt/sbin/ipop3d ipop3d imaps stream tcp nowait root /opt/sbin/imapd imapd Reboot the Slug. <<Note: I found that with 6 entries in the /etc/inetd.conf file the inet daemon did not start after a reboot. Someone needs to verify but I think that the default inetd is a lightweight one. Do a 'ps -ef | grep inetd' and make sure it is still running.>>
Configure your site certificate
Take your site certificate that you got from a CA, and put it in the '/opt/certs' directory If you don't have a site certificate, go get one! Or you can create a self-signed one like this # cd /opt/certs # openssl req -new -x509 -nodes -out imapd.pem -keyout imapd.pem -days 3650 <<Fill in the details with either something meaningful or just wing it!>> You should now have a '/opt/certs/imapd.pem' file that contains a self-signed certificate. Instead of creating another certificate for the POP service just link to the IMAP one. # ln -s imapd.pem pop3s.pem
If your having problems seeing your Inbox via imap then it's most likely due to the fact that the '/var/mail' tree has the wrong permissions or needs to be linked to under '/opt' # chmod 2777 /var/mail # ln -s /var/mail /var/spool/mail # ln -s /var/mail /opt/var/mail # ln -s /var/mail /opt/var/spool/mail