Courier Mail Server Configuration

I present this for my junior who wants learn about Debian mail server configuration for National Exam Practice. Enjoy and have a success :D

  1. uninstall exim4-base >> apt-get remove exim4-base
  2. install postfix, courier-imap, php5-imap, courier-pop >> apt-get install postfix courier-imap php5-imap courier-pop
    web dir = No
    mail name =
    maildir = No
    Internet Site = OK
  3. configure postfix at file >> nano /etc/postfix/
    mydestination =
    mynetworks =
    inet_interface = all
    home_mailbox = Maildir/
  4. install squirrel mail >> apt-get install squirrelmail
  5. configure squirrel mail >> squirrelmail-configure
    enter configuration then press D set predefined setting ..
    choose option Courier Imap Server courier
    Press S for save
    Press Q for Quit editor
  6. make squirrelmail VirtualHost >> nano /etc/apache2/apache2.conf
    #include the virtual host configurations :
    include /etc/apache2/sites-enabled/
    add Include /etc/squirrelmail/apache.conf

  7. restart apache >> /etc/init.d/apache2 restart
  8. make Maildir >> cd /etc/skel/ then maildirmake Maildir
  9. make user at /home >> adduser one
  10. nano /etc/squirrelmail/apache.conf
    #users will prefer a simple URL like
    DocumentRoot /usr/share/squirrelmail

  11. restart apache and postfix

related post into