NSLU2-Linux
view · edit · print · history

HowTo.ConfigUWImapd History

Hide minor edits - Show changes to markup

November 25, 2005, at 09:11 PM by mrkzander --
Changed lines 8-12 from:
to:

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'
November 25, 2005, at 07:54 PM by mrkzander --
Changed lines 4-8 from:

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.

to:

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.

Changed lines 37-38 from:
  If you don't have a site certificate, go get one! Or you can create a self-signed one like this
to:
  If you don't have a site certificate, go get one! 
  Or you can create a self-signed one like this
Changed lines 53-54 from:
  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'
to:
  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'
November 25, 2005, at 07:53 PM by mrkzander --
Added lines 49-58:

Special config

  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
November 25, 2005, at 11:20 AM by mrkzander -- Configure the UW-Imapd server
Added lines 1-48:

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.

Required Software:

  Make sure that openssl, imap and imap-libs are installed.

Configure Imapd:

  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
view · edit · print · history · Last edited by mrkzander.
Originally by mrkzander.
Page last modified on November 25, 2005, at 09:11 PM