13,420
edits
Changes
no edit summary
=== Encryption Dovecot with Secure Socket layer (SSL) ===
Now we'll will ensure that our '''Dovecot ''' connection is secure, and we'll enforce thatpolicy. With SMTP , you will need to allow plain text connections because since that's is the only way method to pass email from server-to-server. With IMAP , there is no server-to-serverinteraction, but rather only client-to-serverinteraction. The only reason to have an unencrypted IMAP connection would be if your '''IMAP server ''' and '''IMAP client ''' were the <u>same </u> machine (this would be the case with situation when using webmail).
# Let's start by generating a new certificate for Dovecot on your vm3 machine by issuing the following commands:
<source lang="bash">openssl genrsa -des3 -out vm3.andrewsmith.org.key 2048
chmod 600 vm3.andrewsmith.org.key
cp vm3.andrewsmith.org.crt cacert.pem /etc/ssl/certs/</source>
<ol><li value="3">Your key/certificate dondoesn't have a '''.pem ''' extension but they are PEM-encoded files. You can confirm that using the '''file''' command. If you're interested - here's some documentation about [http://wiki2.dovecot.org/SSL/DovecotConfiguration Dovecot SSL configuration].</li></ol>
=== Verifying that Mail Messages are Encrypted===