Enabling Dovecot SASL Support for Postfix Smtp, Pop and Imap Login on Ubuntu Step-by-Step Guide

July 17th, 2013 by Regaz

Enabling Dovecot SSL Support for Postfix on Ubuntu

The Easy Guide Shows You How Enabling Postfix Smtp, Pop & Imap Secure Login with Dovecot on Ubuntu Linux.

The Postfix+Dovecot Configuration Proposed will Permit the eMail Client Connection and Retrieval from Your Server.

If You Do Not Already Dispose of a Working Postfix eMail Server then Before Follow the Guide to Postfix Getting-Started.

Linux Gnome Penguin eMail
  1. PreRequisite Postfix Secure eMail Server SetUp:

    Getting-Started with Postfix+Dovecot
  2. Open Terminal Window
    (Press “Enter” to Execute Commands)

    Cmd and Search “term”

    Ubuntu Linux Raring Open Terminal
  3. Edit the Dovecot Configuration File
    sudo su -c "nano /etc/dovecot/dovecot.conf"


    auth default {
        mechanisms = plain login
        passdb pam {
        userdb passwd {
        socket listen {
            client {
                path = /var/spool/postfix/private/auth
                mode = 0660
                user = postfix
                group = postfix
  4. Configuring Dovecot for IMAP, IMAPS, POP3, and POP3S
    sudo su -c "apt-get install mail-stack-delivery"
  5. Create a Self-Signed Certificate for SSL Authentication:

    Self-Signed Certificate on Ubuntu
  6. Copy Server SSL Key, CSR and Certificate for Dovecot Auth
    cp </path/2>/myKEY.pem /etc/ssl/private
    cp </path/2>/myCSR.pem /etc/ssl/certs
    cp </path/2>/myCERT.pem /etc/ssl/certs
  7. Set a Server SSL Certificate and Key
    sudo su -c "nano /etc/postfix/main.cf"

    Change or Set the Following Parameters:

    smtpd_tls_key_file = /etc/ssl/private/myKEY.pem
    smtpd_tls_cert_file = /etc/ssl/certs/myCSR.pem
    smtpd_tls_CAfile = /etc/ssl/certs/myCERT.pem
  8. Latest Restart Postfix
    service postfix restart
  9. How-to Enable eMail Client Custom Password Auth:

    Dovecot Set Custom Password
  10. Then You Should Finally Have a Fully Functional and Secure eMail Server with Smtp, Pop & Imap Login.

Tags: , , , , , , , , , , , , , , , , , ,