Linux Ubuntu 15.04 Vivid Mail Server Setup Enabling POP3-IMAP eMail Clients Authentication with Courier

March 17, 2015 | By thelinuxevangelist | Filed in: Tutorial.

Ubuntu Postfix Mail Server Enabling POP3/IMAP Authentication

The Linux Tutorial Shows You Step-by-Step How-to Install the Courier Packages to Enable POP3/IMAP eMail Clients Authentication on a Postfix Mail Server for Ubuntu 15.04 Vivid Vervet i386/amd64 Linux+GNU.

Postfix Mail Transfer Agent Receives emails via the SMTP protocol and delivers them to different places on your hard disk

Courier is another standalone Mail Server just like Postfix but with Good Components to Allow POP3/IMAP Users Access to the mailboxes.

Ubuntu 15.04 Vivid Linux Mail Server Enabling eMail Clients POP3/IMAP Login with Courier - Featured
  1. Open a Shell Session
    Ctrl+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    Installing Posfix on Ubuntu 15.04 Vivid Linux - Open Terminal
  2. Installing Courier IMAP/POP3 Auth Packages

    sudo apt-get install fam courier-pop-ssl \
    courier-imap-ssl courier-ssl courier-pop courier-imap \
    courier-base  courier-authlib-mysql

    If Got “User is Not in Sudoers file” then Look: Solution
    Normally answer “No” to the Create Directory Question:
    (Use Tab to Switch & Space-Bar to Select then Enter Only to Confirm!)
    Installing Courier Packages for Posfix on Ubuntu 15.04 Vivid Linux -
    You’ll see Notice about the Self-Signed SSL Certificates Generation for Secure POP3/IMAP:
    Installing Courier Packages for Posfix on Ubuntu 15.04 Vivid Linux -
    The pop3d.pem & imapd.pem Certificates are Stored for further Utilization under the /etc/courier Directory.
    For Production use, the X.509 Certificate Must be Signed by a recognized certificate Authority, in order for mail clients to accept the certificate.

  3. How-to Enable Postfix with MySQL Backend Management

    Postfix with MySQL Setup
  4. Enabling Courier IMAP Connection with MySQL Support

    sudo nano /etc/courier/authdaemonrc



    And also:


    To save time Debugging with Passwords tailing on /var/log/mail*…
    Ctrl+x to Save & Exit from nano Editor :)

    Then Edit the MySQL Authentication Config File like:

    sudo nano /etc/courier/authmysqlrc

    It should Include these Entries:

    MYSQL_USERNAME postfixadmin
    MYSQL_PASSWORD [posfixadminMySqlPass]
    MYSQL_DATABASE postfixadmin
    MYSQL_USER_TABLE mailbox
    MYSQL_LOGIN_FIELD username
    #MYSQL_CLEAR_PWFIELD     password
    MYSQL_QUOTA_FIELD concat(quota,'S')
    MYSQL_HOME_FIELD        '/home/vmail'
    MYSQL_UID_FIELD '5000'
    MYSQL_GID_FIELD '5000'

    Use Ctrl+w to Search on nano…
    Change the ‘posfixadminMySqlPass’!

    Last Restart the Courier Service with:

    sudo su -c "service courier-authdaemon restart; \
    /etc/init.d/courier-imap restart; /etc/init.d/courier-pop restart"

    Eventually Check Logs with:

    sudo tail -f /var/log/mail*
  5. Finally Configure Postfix to Use SASL

    sudo usermod -G sasl postfix
  6. How-to Manage a Multi-Domain Mail Server with PostfixAdmin

    Postfix Admin Quick-Start Guide

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