Courier POP3 and Courier IMAP


This procedure will install the POP3 and IMAP services.


  1. Login as the root user.
    [screenshot]

  2. Update the package list.

    # apt-get update

  3. Install courier-pop.

    # apt-get install courier-pop
    [screenshot]

  4. Edit the /etc/pam.d/pop3 file.

    # mcedit /etc/pam.d/pop3
    [screenshot]

    Change the file to read as follows:

    auth       sufficient     pam_winbind.so 
    auth       required       pam_unix.so nullok use_first_pass
    account    required       pam_winbind.so
    password   required       pam_unix.so
    session    required       pam_unix.so
    

    With this configuration, the POP3 service will check the local accounts database if domain authentication fails.

    Note: The pam_winbind module provides the pam_unix accounting facility.

  5. Install courier-imap.

    # apt-get install courier-imap
    [screenshot]

  6. Edit the /etc/pam.d/imap file.

    # mcedit /etc/pam.d/imap
    [screenshot]

    Change the file to read as follows:

    auth       sufficient     pam_winbind.so 
    auth       required       pam_unix.so nullok use_first_pass
    account    required       pam_winbind.so
    password   required       pam_unix.so
    session    required       pam_unix.so
    

    With this configuration, the IMAP service will check the local accounts database if domain authentication fails.

    Note: that the pam_winbind module provides the pam_unix accounting facility.

  7. Create a maildir in the user skeleton directory.

    # maildirmake /etc/skel/Maildir
    [screenshot]

  8. Verify that the maildir was created. Capitalization matters.

    # ls -la /etc/skel/
    [screenshot]


The POP3 and IMAP services will not be available until the home directories are created in the next chapter. After the home directories have been created, these services may be tested.