Project

General

Profile

Tâche #21831

Scénario #21993: Les listes de diffusion doivent être fonctionnelles après un Upgrade depuis 2.5.2

Les alias de listes doivent être régénérés après l'upgrade

Added by Laurent Flori over 5 years ago. Updated over 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
10/17/2017
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:
Remaining (hours):
0.0

Description

Il faut regénérer les alias après upgrade-auto à cause du changement de fichier de /etc/mail/sympa.aliases vers /etc/mail/sympa/aliases
La commande pour régénérer les alias:

/usr/share/eole/backend/regenalias.sh

Associated revisions

Revision 6ffabda2 (diff)
Added by Laurent Flori over 5 years ago

Correct sympa alias during upgrade 2.5.2 -> 2.6.X

ref: #21831

New destination for sympa alias /etc/mail/sympa/alias
New format for alias lines

Revision 673bc9aa (diff)
Added by Laurent Flori over 5 years ago

Fix path for container_mode in regenalias

ref: #21831

History

#1 Updated by Laurent Flori over 5 years ago

  • Description updated (diff)

#2 Updated by Laurent Flori over 5 years ago

Après Upgrade-Auto 2.5.2 vers 2.6.1 les listes ne fonctionnent plus. c'est du à la non (ré)génération du fichier /etc/mail/sympa/aliases. Les alias à ce moment là sont toujours stockés dans le fichier /etc/mail/sympa.aliases

Pour reproduire le problème,

  • Upgrade-Auto scribe 2.5.2 -> 2.6.1 après la procédure d'upgrade
  • Ouvrir un navigateur à l'adresse https://etb1.ac-test.fr/roundcube
  • Ouvrir une session avec prof.6a/prof.6a.
  • Essayer d'envoyer un mail à la liste .
    L'envoi échoue avec une erreur

Pour corriger

Lancer la commande /usr/share/eole/backend/regenalias.sh et reprendre la procédure ci-dessus.
On peut vérifier en se connectant sur roundcube avec le compte 6a.01/6a.01 que l'on a bien reçu le mail précédent

#3 Updated by Laurent Flori over 5 years ago

  • Status changed from Nouveau to En cours

#4 Updated by Joël Cuissinat over 5 years ago

  • Estimated time set to 4.00 h
  • Remaining (hours) set to 4.0

#5 Updated by Joël Cuissinat over 5 years ago

  • Parent task changed from #21721 to #21993

#6 Updated by Joël Cuissinat over 5 years ago

  • Status changed from En cours to Nouveau

#7 Updated by Scrum Master over 5 years ago

  • Status changed from Nouveau to En cours

#8 Updated by Laurent Flori over 5 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 4.0 to 0.25

#9 Updated by Laurent Flori over 5 years ago

Pour tester, on peut utiliser la commande swaks:

swaks --server localhost -to 6a@i-etb1.ac-test.fr -from prof.6a@etb1.ac-test.fr -au prof.6a -ap prof.6a -tls

La sortie devrait ressembler à ça:
=== Trying localhost:25...
=== Connected to localhost.
<-  220 scribe.etb1.lan ESMTP Exim 4.86_2 Ubuntu Fri, 17 Nov 2017 14:53:43 +0100
 -> EHLO scribe.etb1.lan
<-  250-scribe.etb1.lan Hello localhost [127.0.0.1]
<-  250-SIZE 5242880
<-  250-8BITMIME
<-  250-STARTTLS
<-  250 HELP
 -> STARTTLS
<-  220 TLS go ahead
=== TLS started with cipher TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256
=== TLS no local certificate set
=== TLS peer DN="/C=FR/O=Ministere Education Nationale (MENESR)/OU=110 043 015/OU=ac-test/CN=scribe.etb1.lan" 
 ~> EHLO scribe.etb1.lan
<~  250-scribe.etb1.lan Hello localhost [127.0.0.1]
<~  250-SIZE 5242880
<~  250-8BITMIME
<~  250-AUTH LOGIN
<~  250 HELP
 ~> AUTH LOGIN
<~  334 VXNlcm5hbWU6
 ~> cHJvZi42YQ==
<~  334 UGFzc3dvcmQ6
 ~> cHJvZi42YQ==
<~  235 Authentication succeeded
 ~> MAIL FROM:<prof.6a@etb1.ac-test.fr>
<~  250 OK
 ~> RCPT TO:<6a@i-etb1.ac-test.fr>
<~  250 Accepted
 ~> DATA
<~  354 Enter message, ending with "." on a line by itself
 ~> Date: Fri, 17 Nov 2017 14:53:42 +0100
 ~> To: 6a@i-etb1.ac-test.fr
 ~> From: prof.6a@etb1.ac-test.fr
 ~> Subject: test Fri, 17 Nov 2017 14:53:42 +0100
 ~> X-Mailer: swaks v20130209.0 jetmore.org/john/code/swaks/
 ~> 
 ~> This is a test mailing
 ~> 
 ~> .
<~  250 OK id=1eFh5T-00050P-1d
 ~> QUIT
<~  221 scribe.etb1.lan closing connection
=== Connection closed with remote host.

#10 Updated by Scrum Master over 5 years ago

  • Status changed from En cours to Résolu

#11 Updated by Emmanuel GARETTE over 5 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

Le fichier /etc/mail/sympa/aliases est bien regénéré.

Also available in: Atom PDF