This procedure will install the POP3 and IMAP services.
# apt-get update
# apt-get install courier-pop
[screenshot]
# 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.
# apt-get install courier-imap
[screenshot]
# 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.
# maildirmake /etc/skel/Maildir
[screenshot]
# 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.