• Serveurs
  • [Discussion] Installation automatisée d'un serveur de mail sous Debian

salut !

sympa comme script

J ai deja fait le tuto à la main sans trop de soucis mais la avec le script sur mon vps rien en va plus

j ai installé mon LEMP avec le script tuxlite , puis open ssl et maintenant j ai ca :
[crit] 9908#0: *4 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 213.186.50.98, server: postfixadmin.xxxxxxx.yy, request: "GET /setup.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "postfixadmin.xxxxx.yy"
deja testé :
/etc/init.d/php5-fpm restart
(ca reload sans soucis)

et dans le doute php5-fpm est bien installé !

des idées?
un mois plus tard
Merci quand même j'ai résolu mon problème.
7 jours plus tard
Bonjour à tous !
Tout d'abord, merci par avance pour votre aide. Je vous explique mon problème.
J'ai installé un serveur mail sur un VPS Debian 7 via le script téléchargeable sur votre site. Le script s'exécute. Pas de problème jusque là. Ensuite, je décide d'installer le client webmail RoundCube, et là, c'est le drame. J'obtiens un vilain message d'erreur :

IMAP connect: NOT OK(Login failed for admin@bidule.fr from 90.41.***.***. Empty startup greeting (localhost:993))

Après quelques recherche sur internet infructueuse je me tourne vers vous, dans l'espoir de résoudre mon problème. sad
Bonjour,
sa vient surement de la conf du ndd
Même en localhost le ndd peut jouer ? Je ne savais pas :O
Bonsoir, j'ai aussi ce message d'erreur:
Domaine invalide ndd.fr, et/ou non resolvable via les DNS
Dans mon registrar, j'avais:
rutorrent
www
postfixadmin
phpmyadmin

J'ai essayé mais n'a pas marché donc j'ai rajouté pas de nom puis mon ip.
Est ce que ça fonctionnera?
Car sinon l'adresse sera admin@postfixadmin@ndd.fr

Mais avant que je supprimer tout, j'avais bien admin@ndd.fr

Et j'ai continuer l'installation:
-> Création du répertoire /var/www/rainloop
-> Décompression de Rainloop dans le répertoire /var/www/rainloop
-> Modification des permissions

-------------------------------------------------
> Sous-domaine de Rainloop [Par défaut : webmail] : webmail
-------------------------------------------------

-> Ajout du vhost rainloop
-> Redémarrage de PHP-FPM.
-> Redémarrage de nginx pour prendre en compte le nouveau vhost.


[ + + + + + + + + + ] Appuyez sur [ENTRÉE] pour continuer...
------------------------------
[  REDÉMARRAGE DES SERVICES  ]
------------------------------

Job for dovecot.service failed. See 'systemctl status dovecot.service' and 'journalctl -xn' for details.


 /!\ FATAL: un problème est survenu lors du redémarrage de Dovecot.

 /!\ Consultez le fichier de log /var/log/mail.log


----------------------------
[  VERIFICATION DES PORTS  ]
----------------------------


/!\ ERREUR: Nombre de ports invalide !

POSTFIX: ● postfix.service - LSB: Postfix Mail Transport Agent
   Loaded: loaded (/etc/init.d/postfix)
  Drop-In: /run/systemd/generator/postfix.service.d
           └─50-postfix-$mail-transport-agent.conf
   Active: active (running) since Sat 2015-05-16 19:57:53 CEST; 1s ago
  Process: 41961 ExecStop=/etc/init.d/postfix stop (code=exited, status=0/SUCCESS)
  Process: 41984 ExecStart=/etc/init.d/postfix start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/postfix.service
           ├─42092 /usr/lib/postfix/master
           ├─42098 pickup -l -t unix -u -c
           └─42099 qmgr -l -t unix -u

May 16 19:57:53 sd-39459 postfix[41984]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
May 16 19:57:53 sd-39459 postfix[41984]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
May 16 19:57:53 sd-39459 postfix[41984]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
May 16 19:57:53 sd-39459 postfix[41984]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
May 16 19:57:53 sd-39459 postfix[41984]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
May 16 19:57:53 sd-39459 postfix[41984]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
May 16 19:57:53 sd-39459 postfix[41984]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
May 16 19:57:53 sd-39459 postfix[41984]: /usr/sbin/postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
May 16 19:57:53 sd-39459 postfix[41984]: .
May 16 19:57:53 sd-39459 postfix/master[42092]: daemon started -- version 2.11.3, configuration /etc/postfix !
DOVECOT: ● dovecot.service - LSB: Dovecot init script
   Loaded: loaded (/etc/init.d/dovecot)
   Active: failed (Result: exit-code) since Sat 2015-05-16 19:57:53 CEST; 1s ago
  Process: 42097 ExecStop=/etc/init.d/dovecot stop (code=exited, status=0/SUCCESS)
  Process: 42106 ExecStart=/etc/init.d/dovecot start (code=exited, status=1/FAILURE)

May 16 19:57:53 sd-39459 dovecot[42106]: Starting IMAP/POP3 mail server: dovecotdoveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 10: ssl_cert: Can't open file /etc/ssl/certs/dovecot.pem: No such file or directory
May 16 19:57:53 sd-39459 dovecot[42106]: failed!
May 16 19:57:53 sd-39459 systemd[1]: dovecot.service: control process exited, code=exited status=1
May 16 19:57:53 sd-39459 systemd[1]: Failed to start LSB: Dovecot init script.
May 16 19:57:53 sd-39459 systemd[1]: Unit dovecot.service entered failed state. !
DOVECOT: ● opendkim.service - LSB: Start the OpenDKIM service
   Loaded: loaded (/etc/init.d/opendkim)
   Active: active (running) since Sat 2015-05-16 19:57:54 CEST; 25ms ago
  Process: 42117 ExecStop=/etc/init.d/opendkim stop (code=exited, status=0/SUCCESS)
  Process: 42125 ExecStart=/etc/init.d/opendkim start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/opendkim.service
           ├─42130 /usr/sbin/opendkim -x /etc/opendkim.conf -u opendkim -P /var/run/opendkim/opendkim.pid
           └─42131 /usr/sbin/opendkim -x /etc/opendkim.conf -u opendkim -P /var/run/opendkim/opendkim.pid

May 16 19:57:54 sd-39459 opendkim[42125]: Starting OpenDKIM: opendkim.
May 16 19:57:54 sd-39459 opendkim[42131]: OpenDKIM Filter v2.9.2 starting (args: -x /etc/opendkim.conf -u opendkim -P /var/run/opendkim/opendkim.pid) !
Pour l'erreur
Job for dovecot.service failed. See 'systemctl status dovecot.service' and 'journalctl -xn' for details.
c'est quand il y a un problème sur un fichier .conf.
Sans doute le fichier qu'il a essayé de rajouté.

En plus, il me faut absolument admin@ndd.fr pour refaire mes ssl sur startSSL.
Que dit journalctl -u dovecot ?
J'ai réessayé de faire l'installation mais idem. J'ai réussi aussi à avoir admin@ndd.fr. Je pense qu'il fallait attendre la propagation du dns.
-- Logs begin at Sat 2015-05-16 14:43:31 CEST, end at Sun 2015-05-17 11:21:03 CEST. --
May 16 19:57:14 sd-39459 dovecot[17075]: Starting IMAP/POP3 mail server: dovecot.
May 16 19:57:14 sd-39459 dovecot[17080]: master: Dovecot v2.2.13 starting up without any protocols (core dumps disabled)
May 16 19:57:14 sd-39459 dovecot[17082]: ssl-params: Generating SSL parameters
May 16 19:57:15 sd-39459 dovecot[17082]: ssl-params: SSL parameters regeneration completed
May 16 19:57:15 sd-39459 dovecot[17080]: master: Warning: Killed with signal 15 (by pid=17376 uid=0 code=kill)
May 16 19:57:15 sd-39459 dovecot[17373]: Stopping IMAP/POP3 mail server: dovecot.
May 16 19:57:15 sd-39459 dovecot[17382]: Starting IMAP/POP3 mail server: dovecot.
May 16 19:57:15 sd-39459 dovecot[17387]: master: Dovecot v2.2.13 starting up for imap, lmtp (core dumps disabled)
May 16 19:57:53 sd-39459 dovecot[17387]: master: Warning: Killed with signal 15 (by pid=42102 uid=0 code=kill)
May 16 19:57:53 sd-39459 dovecot[42097]: Stopping IMAP/POP3 mail server: dovecot.
May 16 19:57:53 sd-39459 dovecot[42106]: Starting IMAP/POP3 mail server: dovecotdoveconf: Fatal: Error in configuration file
May 16 19:57:53 sd-39459 dovecot[42106]: failed!
May 16 19:57:53 sd-39459 systemd[1]: dovecot.service: control process exited, code=exited status=1
May 16 19:57:53 sd-39459 systemd[1]: Failed to start LSB: Dovecot init script.
May 16 19:57:53 sd-39459 systemd[1]: Unit dovecot.service entered failed state.
May 17 11:19:52 sd-39459 dovecot[54244]: Starting IMAP/POP3 mail server: dovecot.
May 17 11:19:52 sd-39459 dovecot[54249]: master: Dovecot v2.2.13 starting up without any protocols (core dumps disabled)
May 17 11:19:53 sd-39459 dovecot[54249]: master: Warning: Killed with signal 15 (by pid=54544 uid=0 code=kill)
May 17 11:19:53 sd-39459 dovecot[54541]: Stopping IMAP/POP3 mail server: dovecot.
May 17 11:19:53 sd-39459 dovecot[54550]: Starting IMAP/POP3 mail server: dovecot.
May 17 11:19:53 sd-39459 dovecot[54555]: master: Dovecot v2.2.13 starting up for imap, lmtp (core dumps disabled)
May 17 11:20:33 sd-39459 dovecot[54555]: master: Warning: Killed with signal 15 (by pid=14346 uid=0 code=kill)
May 17 11:20:33 sd-39459 dovecot[14343]: Stopping IMAP/POP3 mail server: dovecot.
May 17 11:20:33 sd-39459 dovecot[14350]: Starting IMAP/POP3 mail server: dovecotdoveconf: Fatal: Error in configuration file
May 17 11:20:33 sd-39459 dovecot[14350]: failed!
May 17 11:20:33 sd-39459 systemd[1]: dovecot.service: control process exited, code=exited status=1
May 17 11:20:33 sd-39459 systemd[1]: Failed to start LSB: Dovecot init script.
May 17 11:20:33 sd-39459 systemd[1]: Unit dovecot.service entered failed state.
Les lignes sont tronquées, l'erreur n’apparaît pas complètement, essaye : journalctl --full -u dovecot
Normalement --full est un argument par défaut de la commande journalctl selon le man, sous Arch en tout cas...
-- Logs begin at Sat 2015-05-16 14:43:31 CEST, end at Wed 2015-05-20 10:20:26 CE
May 16 19:57:14 sd-39459 dovecot[17075]: Starting IMAP/POP3 mail server: dovecot
May 16 19:57:14 sd-39459 dovecot[17080]: master: Dovecot v2.2.13 starting up wit
May 16 19:57:14 sd-39459 dovecot[17082]: ssl-params: Generating SSL parameters
May 16 19:57:15 sd-39459 dovecot[17082]: ssl-params: SSL parameters regeneration
May 16 19:57:15 sd-39459 dovecot[17080]: master: Warning: Killed with signal 15
May 16 19:57:15 sd-39459 dovecot[17373]: Stopping IMAP/POP3 mail server: dovecot
May 16 19:57:15 sd-39459 dovecot[17382]: Starting IMAP/POP3 mail server: dovecot
May 16 19:57:15 sd-39459 dovecot[17387]: master: Dovecot v2.2.13 starting up for
May 16 19:57:53 sd-39459 dovecot[17387]: master: Warning: Killed with signal 15
May 16 19:57:53 sd-39459 dovecot[42097]: Stopping IMAP/POP3 mail server: dovecot
May 16 19:57:53 sd-39459 dovecot[42106]: Starting IMAP/POP3 mail server: dovecot
May 16 19:57:53 sd-39459 dovecot[42106]: failed!
May 16 19:57:53 sd-39459 systemd[1]: dovecot.service: control process exited, co
May 16 19:57:53 sd-39459 systemd[1]: Failed to start LSB: Dovecot init script.
May 16 19:57:53 sd-39459 systemd[1]: Unit dovecot.service entered failed state.
May 17 11:19:52 sd-39459 dovecot[54244]: Starting IMAP/POP3 mail server: dovecot
May 17 11:19:52 sd-39459 dovecot[54249]: master: Dovecot v2.2.13 starting up wit
May 17 11:19:53 sd-39459 dovecot[54249]: master: Warning: Killed with signal 15
May 17 11:19:53 sd-39459 dovecot[54541]: Stopping IMAP/POP3 mail server: dovecot
May 17 11:19:53 sd-39459 dovecot[54550]: Starting IMAP/POP3 mail server: dovecot
May 17 11:19:53 sd-39459 dovecot[54555]: master: Dovecot v2.2.13 starting up for
May 17 11:20:33 sd-39459 dovecot[54555]: master: Warning: Killed with signal 15
lines 1-23...skipping...
-- Logs begin at Sat 2015-05-16 14:43:31 CEST, end at Wed 2015-05-20 10:20:26 CEST. --
May 16 19:57:14 sd-39459 dovecot[17075]: Starting IMAP/POP3 mail server: dovecot.
May 16 19:57:14 sd-39459 dovecot[17080]: master: Dovecot v2.2.13 starting up without any protocols (core dumps disabled)
May 16 19:57:14 sd-39459 dovecot[17082]: ssl-params: Generating SSL parameters
May 16 19:57:15 sd-39459 dovecot[17082]: ssl-params: SSL parameters regeneration completed
May 16 19:57:15 sd-39459 dovecot[17080]: master: Warning: Killed with signal 15 (by pid=17376 uid=0 code=kill)
May 16 19:57:15 sd-39459 dovecot[17373]: Stopping IMAP/POP3 mail server: dovecot.
May 16 19:57:15 sd-39459 dovecot[17382]: Starting IMAP/POP3 mail server: dovecot.
May 16 19:57:15 sd-39459 dovecot[17387]: master: Dovecot v2.2.13 starting up for imap, lmtp (core dumps disabled)
May 16 19:57:53 sd-39459 dovecot[17387]: master: Warning: Killed with signal 15 (by pid=42102 uid=0 code=kill)
May 16 19:57:53 sd-39459 dovecot[42097]: Stopping IMAP/POP3 mail server: dovecot.
May 16 19:57:53 sd-39459 dovecot[42106]: Starting IMAP/POP3 mail server: dovecotdoveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 10: ssl_cert: Can't open file /etc/ssl/certs/dovecot.pem: No such file or directory
May 16 19:57:53 sd-39459 dovecot[42106]: failed!
May 16 19:57:53 sd-39459 systemd[1]: dovecot.service: control process exited, code=exited status=1
May 16 19:57:53 sd-39459 systemd[1]: Failed to start LSB: Dovecot init script.
May 16 19:57:53 sd-39459 systemd[1]: Unit dovecot.service entered failed state.
May 17 11:19:52 sd-39459 dovecot[54244]: Starting IMAP/POP3 mail server: dovecot.
May 17 11:19:52 sd-39459 dovecot[54249]: master: Dovecot v2.2.13 starting up without any protocols (core dumps disabled)
May 17 11:19:53 sd-39459 dovecot[54249]: master: Warning: Killed with signal 15 (by pid=54544 uid=0 code=kill)
May 17 11:19:53 sd-39459 dovecot[54541]: Stopping IMAP/POP3 mail server: dovecot.
May 17 11:19:53 sd-39459 dovecot[54550]: Starting IMAP/POP3 mail server: dovecot.
May 17 11:19:53 sd-39459 dovecot[54555]: master: Dovecot v2.2.13 starting up for imap, lmtp (core dumps disabled)
May 17 11:20:33 sd-39459 dovecot[54555]: master: Warning: Killed with signal 15 (by pid=14346 uid=0 code=kill)
May 17 11:20:33 sd-39459 dovecot[14343]: Stopping IMAP/POP3 mail server: dovecot.
May 17 11:20:33 sd-39459 dovecot[14350]: Starting IMAP/POP3 mail server: dovecotdoveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 10: ssl_cert: Can't open file /etc/ssl/certs/dovecot.pem: No such file or directory
May 17 11:20:33 sd-39459 dovecot[14350]: failed!
May 17 11:20:33 sd-39459 systemd[1]: dovecot.service: control process exited, code=exited status=1
May 17 11:20:33 sd-39459 systemd[1]: Failed to start LSB: Dovecot init script.
May 17 11:20:33 sd-39459 systemd[1]: Unit dovecot.service entered failed state.
Oui, je n'ai pas du tout ce fichier. /etc/ssl/certs/dovecot.pem
Normalement le script déplace les certificats de dovecot dans les bons répertoires :
echo -e "${CGREEN}-> Déplacement du certificat SSL et de la clé privée dans les répertoires par défaut ${CEND}"
mv /etc/dovecot/dovecot.pem /etc/ssl/certs
mv /etc/dovecot/private/dovecot.pem /etc/ssl/private
mais vu l'erreur que tu as, ça doit pas être le cas :
May 17 11:20:33 sd-39459 dovecot[14350]: Starting IMAP/POP3 mail server: dovecot
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf 
line 10: ssl_cert: Can't open file /etc/ssl/certs/dovecot.pem: No such file or directory

May 17 11:20:33 sd-39459 dovecot[14350]: failed!
May 17 11:20:33 sd-39459 systemd[1]: dovecot.service: control process exited, code=exited status=1
May 17 11:20:33 sd-39459 systemd[1]: Failed to start LSB: Dovecot init script.
May 17 11:20:33 sd-39459 systemd[1]: Unit dovecot.service entered failed state.
Recherche où se trouve le certificat avec la commande :
find / -name "*dovecot.pem*"
Donc faut régénérer les certificats à la main. De toute façon, faut je mette à jour le script pour Jessie, je le ferais ce week-end.
Ok je vais attendre alors. Il faudra que je recommence d'à zéro?
Non pas forcément, je te dirais d'où vient l'erreur pour que tu puisses corriger.
Ok merci. Je vais voir pour faire d'autres installations en attendant (sickbeard, etc).

Le principal est que je puisse avoir la fin de l'installation du serveur de mail et le ssl (que je vais galérer vu que j'ai pas sauvegardé les clés et je ne pense pas que je peux les ravoir).

Je suppose que je suis pas aller assez loin pour avoir temporairement accès au mail par outlook?
J'ai mis à jour le script d'auto-installation, il fonctionne désormais avec Debian 8 "Jessie", bien entendu il est toujours compatible avec Debian 7. J'en ai profité pour ajouter l'installation de Spamassassin et Sieve comme dans le tuto.
Merci beaucoup.
Vous avez trouvé vers où arriver mon problème en se penchant sur jessie?
Oui en fait le nouveau paquet de Dovecot n'intègre plus le certificat SSL par défaut (dovecot.pem), donc il faut le générer à la main. Tout est intégré au script à ce niveau là