IMAP


IMAP - Internet Message Access Protocol

dovecot-imapd

If you get an expired cert error -

In order to regenerate the self-signed SSL certificate for dovecot, you have to remove both the old certificate and the old key, and then reconfigure the package dovecot-common.

For example, in a standard installation:

 # rm /etc/ssl/certs/dovecot.pem /etc/ssl/private/dovecot.pem
 #wajig reconfigure dovecot-common

Debian Centric Setup Notes

wajig install dovecot-imapd
protocols = imaps

Using an imap client - get rid of any subfolders by moving these to the top level (you can recreate these later).

Moving from mbox to Maildir

While dovecot will keep working with mbox style mail folders, I recommend moving to Maildir for the ability (still sort of beta as of April 2008) to share folders. Sharing folders can be a real productivity boost. There is probably a better way to convert systems with a large number of users.

# enables the convert plugin
mail_plugins = convert
#we want to go to a normal Maildir setup
mail_location = maildir:~/Maildir
# We want to convert  from mbox files located in home/mail
convert_mail = mbox:%h/mail
local_delivery:
 driver = appendfile
 group = mail
##next three lines maildir
  maildir_format = true
  directory = /home/${local_part}/Maildir
  create_directory = true
  mode = 0660
  mode_fail_narrower = false
  envelope_to_add = true
  return_path_add = true
  delivery_date_add
## mailbox file = /var/mail/$local_part

Using dovecot as the LDA

An even better way of having Exim deliver your maildir mail, is to have dovecot act as the LDA(Local Delivery Agent).
protocol lda {
# Address to use when sending rejection mails.
postmaster_address = postmaster@example.com 

#Hostname to use in various parts of sent mails, eg. in Message-Id. 
# Default is the system's real hostname.
#hostname =

 # Support for dynamically loadable plugins. mail_plugins is a space separated
 # list of plugins to load.
 #mail_plugins =
mail_plugin_dir = /usr/lib/dovecot/modules/lda

 # Binary to use for sending mails.
 #sendmail_path = /usr/lib/sendmail

 # UNIX socket path to master authentication server to find users.
 #auth_socket_path = /var/run/dovecot/auth-master

# Enabling Sieve plugin for server-side mail filtering
 # mail_plugins = cmusieve 
}
local_delivery_dovecot_maildir:
  driver = pipe
  command = /usr/lib/dovecot/deliver
  message_prefix =
  message_suffix = 
  log_output
  delivery_date_add
  envelope_to_add
  return_path_add
  group = dovecot
chown root.dovecot /etc/dovecot/dovecot.conf
chmod 640 /etc/dovecot/dovecot.conf

wu-imapd

With the the old wu-imapd package. If you get an expired cert error -

#rm /etc/ssl/certs/imapd.pem
#wajig reconfigure uw-imapd

Keep your old settings and it makes the new cert for you.

Because of the wu-imapd license, I moved on to dovecot a truly GPL package. It turns out it is recommended for use with squirrel-mail.


Top Page wiki Index

Disclaimer

This information may have errors; It is not permissible to be read by anyone who has ever met a lawyer.
Use is confined to Engineers with more than 370 course hours of electronic engineering for theoretical studies.
ph +1(785) 841-3089

Email inform@xtronics.com

(C) Copyright 1994-2017, Transtronics, Inc. All rights reserved
TranstronicsĀ® is a registered trademark of Transtronics, Inc.
All trademarks are the property of their respective owners.