### Prérequis ### # aptitude install apache2 php5 php5-mysql php5-gd libapache2-mod-php5 mysql-server-5.5 # aptitude install postfix ### Dovecot (POP/IMAP) ### # aptitude install dovecot-imapd dovecot-pop3d ### Bug Systemd/Dovecot : # cp /lib/systemd/system/dovecot.socket /etc/systemd/system/ # systemctl reenable dovecot.socket # sed -i '/:143$/s/^/#/' /etc/systemd/system/dovecot.socket # systemctl stop dovecot.service # systemctl start dovecot.socket # systemctl status dovecot.socket # systemctl daemon-reload # reboot ### Squirremail ### # aptitude install squirrelmail # squirrelmail-configure --> Touche “2” pour éditer "Server settings". --> Touche “1” pour changer le nom de domaine. Ecrire 'fij.name'. --> Touche “R” (retour au menu puis touche 'Enter'). --> Touche “4” pour configurer "General options". --> Touche “11” et appuyer sur “y” ("false" to "true" pour "Allow server-side sorting"). --> Touche "Enter" et touche “S” pour sauver la configuration. ### Configuration d'Apache pour Squirrelmail : # cp /etc/squirrelmail/apache.conf /etc/apache2/sites-available/squirrelmail.conf # a2ensite squirrelmail.conf # service apache2 reload ### Création du dossier 'utilisateurs' : # mkdir /var/www/html/ # nano /etc/aliases --> vider le fichier # postalias /etc/aliases ### Ajout d'un utilisateur ### # adduser postmaster --home /var/www/html/postmaster # mutt --> envoyer un mail à cet utilisateur pour activer son compte dans squirrelmail ### Sources ### http://www.tecmint.com/setup-postfix-mail-server-in-ubuntu-debian/ https://appbead.com/blog/fix-errors-reported-in-syslog-for-debian-8-jessie.html