Hello,

Now that my phone handles mails, there's nothing more frustrating than having to revalidate the evening on the way.

That's why I started to use the protocol imap .

This protocol allows to leave the emails on the server in order to view them from different email clients or webmail.

To install dovecot, it's easy. As root type:

  aptitude install dovecot 

Voila, your imap server now works with secure SSL connections on port 993.

Now the concern is that the SSL certificate is a self-generated, but thanks to site CA-Cert certificates you can have free.

Here, step by step how to create and integrate your imapd:

  mkdir certificate
 cd certificate
 openssl req-nodes-new-keyout-out imapd.key imapd.csr 

Answer the various questions and especially to the question "Common Name (eg, YOUR name) []:" enter your FQDN for me imap example imap.syl21.org

This generates a private key (imapd.key) and an application key (imapd.csr). Copy the key CSR in Ca-Cert when prompted.

Once Ca-Cert provides you put your key in the file "imapd.cert."

Now we will dispatch the public key and private key to provide dovecot

  imapd.cert cp / etc / ssl / certs / dovecot.pem
 imapd.key cp / etc / ssl / private / dovecot.pem
 / Etc / init.d / dovecot restart 

And now you only have to add the root certificate CA-Cert