Search Site:

About

Linux

Printers?

Programming

Windows?

Download

Skins

Edit - To Do - AllRecentChanges

Recent Changes Printable View Page History Edit Page

EmailServer.Dovecot History

Hide minor edits - Show changes to markup

Thursday 16 February 2012, at 07:13 GMT+8 by 192.168.0.201 -
Changed lines 100-102 from:

(:source:)

  1. /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh

(:sourcend:)

to:
   # /usr/libexec/dovecot/mkcert.sh
Thursday 16 February 2012, at 06:58 GMT+8 by 192.168.0.201 -
Changed lines 98-99 from:

Now all we need is to run the small script that the dovecot people have nicely provided to generate the key.\\

to:

Now all we need is to run the small script that the dovecot people have nicely provided to generate the key.

Thursday 16 February 2012, at 06:58 GMT+8 by 192.168.0.201 -
Changed line 99 from:

(:source lang=bash:)

to:

(:source:)

Thursday 16 February 2012, at 06:58 GMT+8 by 192.168.0.201 -
Changed line 99 from:

(:source lang=:)

to:

(:source lang=bash:)

Thursday 22 January 2009, at 08:22 GMT+8 by 192.168.0.101 -
Changed lines 29-31 from:
  imap_max_line_length = 65536
  login_greeting_capability = no
  imap_client_workarounds = outlook-idle
to:
    imap_max_line_length = 65536
    login_greeting_capability = no
    imap_client_workarounds = outlook-idle
Changed lines 34-35 from:
  pop3_uidl_format = %08Xu%08Xv
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
to:
    pop3_uidl_format = %08Xu%08Xv
    pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
Changed line 38 from:
  postmaster_address = postmaster@example.com
to:
    postmaster_address = postmaster@example.com
Changed lines 41-46 from:
  mechanisms = plain
  passdb pam {
  }
  userdb passwd {
  }
  user = root
to:
    mechanisms = plain
    passdb pam {
    }
    userdb passwd {
    }
    user = root
Changed lines 98-105 from:

Now we need to correct the small script that the dovecot people have nicely provided to generate the key.
Edit /usr/share/doc/dovecot-1.0/examples/mkcert.sh and change the following line: (:source lang=bash:) ... SSLDIR=${SSLDIR-/etc/pki/dovecot} ... (:sourcend:) Now all we need is to run it.

to:

Now all we need is to run the small script that the dovecot people have nicely provided to generate the key.\\

Changed line 100 from:
  1. /usr/share/doc/dovecot-1.0/examples/mkcert.sh
to:
  1. /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh
Added lines 102-103:

Note that you may need to change the path to the exact version on your system.

Thursday 22 January 2009, at 08:03 GMT+8 by 192.168.0.101 -
Changed line 17 from:

Edit the /etc/dovecot.conf file and modify the following lines:

to:

Edit the /etc/dovecot.conf file so that only the following lines are uncommented:

Changed lines 20-21 from:

ssl_disable = no

to:

listen = [::]

Changed lines 23-24 from:
to:

login_dir = /var/run/dovecot/login login_greeting = Welcome to oBlue. mail_location = maildir:/mail/%u mail_full_filesystem_access = no maildir_copy_with_hardlinks = yes

Changed lines 29-31 from:
 imap_max_line_length = 65536
 login_greeting_capability = yes
 imap_client_workarounds = outlook-idle netscape-eoh
to:
  imap_max_line_length = 65536
  login_greeting_capability = no
  imap_client_workarounds = outlook-idle
Deleted line 32:
Changed lines 34-35 from:
 pop3_uidl_format = %08Xu%08Xv
 pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
to:
  pop3_uidl_format = %08Xu%08Xv
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
Changed lines 37-40 from:

default_mail_env = maildir:/mail/%u/email mail_full_filesystem_access = no maildir_copy_with_hardlinks = yes

to:

protocol lda {

  postmaster_address = postmaster@example.com

} auth default {

  mechanisms = plain
  passdb pam {
  }
  userdb passwd {
  }
  user = root

} dict { } plugin { }

Thursday 22 January 2009, at 07:12 GMT+8 by Renaud -
Changed line 6 from:

Dovecot is a good and flexible POP3 and IMAP mail server. It is very performing and can manage large amounts of emails.\\

to:

Dovecot is an excellent and flexible POP3 and IMAP mail server. Its performance is outstanding and it can be setup to manage large amounts of emails.\\

Wednesday 21 January 2009, at 15:30 GMT+8 by Renaud -
Changed lines 7-8 from:

Docevot is part of Fedora Core 4 and we don't have to do too much to make it work, although setting encrypted communications takes a bit of work.

to:

Docevot is part of Fedora Core/RedHat/CentOS and we don't have to do too much to make it work, although setting encrypted communications takes a bit of work.

Changed line 15 from:

First, we need to tell Dovecot where to fin our emails: as you remember, we told Postfix to use maildirs in the user directories instead of the default mbox.

to:

First, we need to tell Dovecot where to find our emails: as you remember, we told Postfix to use maildirs in the user directories instead of the default mbox.

Wednesday 21 June 2006, at 13:38 GMT+8 by Renaud -
Changed lines 47-48 from:

You can still access that article here?.

to:

You can access that article on the SecureAccess page where we still use stunnel for securing email we send to the server..

Wednesday 21 June 2006, at 13:37 GMT+8 by Renaud -
Added lines 97-98:

That's it, you should now be able to connect to the server after configuring your client to use SSL.

Wednesday 21 June 2006, at 13:06 GMT+8 by Renaud -
Changed lines 19-25 from:
to:

protocols = imap imaps pop3 pop3s

ssl_disable = no ssl_cert_file = /etc/pki/dovecot/certs/dovecot.pem ssl_key_file = /etc/pki/dovecot/private/dovecot.pem

Added line 31:
Added line 36:
Changed line 58 from:

(:source:)

to:

(:source lang=bash:)

Added line 65:
Added line 81:
Changed line 94 from:

(:source lang=bash:)

to:

(:source lang=:)

Wednesday 21 June 2006, at 12:57 GMT+8 by Renaud -
Added lines 19-28:

protocol imap {

 imap_max_line_length = 65536
 login_greeting_capability = yes
 imap_client_workarounds = outlook-idle netscape-eoh

} protocol pop3 {

 pop3_uidl_format = %08Xu%08Xv
 pop3_client_workarounds = outlook-no-nuls oe-ns-eoh

}

Changed lines 38-39 from:

We will disuss how to easily secure access to your email through encrypted channels in the SecureAccess Chapter.

to:

In the older article for Fedora Core 4 we used stunnel to encrypt our seucred POP and IMAP channels. You can still access that article here?.

To change a bit, we're going to follow Dovecot standard configuration and allow it to use SSL directly for POP3S and IMAPS.

First, remove the existing cert files, we're going to replace them later: (:source:)

  1. rm /etc/pki/dovecot/certs/dovecot.pem
  2. rm /etc/pki/dovecot/private/dovecot.pem

(:sourcend:)

Then edit the /etc/pki/dovecot/dovecot-openssl.cnf to look suitatble for your organisation: (:source:) [ req ] default_bits = 1024 encrypt_key = yes distinguished_name = req_dn x509_extensions = cert_type prompt = no [ req_dn ]

  1. country (2 letter code)

C=HK

  1. State or Province Name (full name)

ST=Hong Kong

  1. Locality Name (eg. city)

L=Central

  1. Organization (eg. company)

O=ACME Publishing Ltd

  1. Organizational Unit Name (eg. section)

OU=Main Office

  1. Common Name (*.example.com is also possible)

CN=mail.example.com

  1. E-mail contact

emailAddress=postmaster@example.com [ cert_type ] nsCertType = server (:sourcend:)

Now we need to correct the small script that the dovecot people have nicely provided to generate the key.
Edit /usr/share/doc/dovecot-1.0/examples/mkcert.sh and change the following line: (:source lang=bash:) ... SSLDIR=${SSLDIR-/etc/pki/dovecot} ... (:sourcend:) Now all we need is to run it. (:source lang=bash:)

  1. /usr/share/doc/dovecot-1.0/examples/mkcert.sh

(:sourcend:)

Wednesday 21 June 2006, at 11:48 GMT+8 by Renaud -
Deleted lines 19-20:

client_workarounds = oe6-fetch-no-newmail outlook-idle outlook-pop3-no-nuls mailbox_check_interval = 20

Tuesday 23 May 2006, at 11:01 GMT+8 by Renaud -
Changed lines 30-31 from:

...ToDo...

to:

We will disuss how to easily secure access to your email through encrypted channels in the SecureAccess Chapter.

Wednesday 21 December 2005, at 12:57 GMT+8 by Renaud - Setting up Dovecot to serve mail to users.
Changed lines 32-33 from:
to:

Sunday 10 July 2005, at 06:42 GMT+8 by Renaud -
Added line 1:
Sunday 10 July 2005, at 05:37 GMT+8 by Renaud -
Added lines 1-35:

This page is part of the EmailServer article.

Dovecot for POP3 and IMAP

Dovecot is a good and flexible POP3 and IMAP mail server. It is very performing and can manage large amounts of emails.
Docevot is part of Fedora Core 4 and we don't have to do too much to make it work, although setting encrypted communications takes a bit of work.

If you haven't got it on your system, you can build it from source or just use the ubiquitous yum: (:source lang=:)

  1. yum install dovecot
  2. chkconfig dovecot --levels 235 on

(:sourcend:)

First, we need to tell Dovecot where to fin our emails: as you remember, we told Postfix to use maildirs in the user directories instead of the default mbox.

Edit the /etc/dovecot.conf file and modify the following lines: (:source:) default_mail_env = maildir:/mail/%u/email client_workarounds = oe6-fetch-no-newmail outlook-idle outlook-pop3-no-nuls mailbox_check_interval = 20 mail_full_filesystem_access = no maildir_copy_with_hardlinks = yes (:sourcend:)

Restart Dovecot (service dovecot restart) and test it right away, trying to get email from your test administrator account through POP3 and IMAP. Note that you must have sent email to that account first so Postfix could create the proper directory structure, otherwise you'll get and error when trying to access the IMAP folder that doesn't exist yet.

SSL for IMAP and POP

...ToDo...

< Postfix | EmailServer | AmavisdNew >

(:comments:)

Edit Page - Page History - Printable View - Recent Changes - WikiHelp - Search - RSS -
Page last modified on Thursday 16 February 2012, at 07:13 GMT+8 - Viewed 7977 times