« Configuration SMTP Mailo pour MediaWiki » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications Balise : Révoqué |
||
| Ligne 21 : | Ligne 21 : | ||
$wgEnableUserEmail = true; | $wgEnableUserEmail = true; | ||
$wgEmergencyContact = "ton.adresse@mailo.com"; | $wgEmergencyContact = "<span style="color: #0000FF;">ton.adresse@mailo.com</span>"; | ||
$wgPasswordSender = "ton.adresse@mailo.com"; | $wgPasswordSender = "<span style="color: #0000FF;">ton.adresse@mailo.com</span>"; | ||
$wgEnotifUserTalk = true; | $wgEnotifUserTalk = true; | ||
| Ligne 33 : | Ligne 33 : | ||
'port' => 587, | 'port' => 587, | ||
'auth' => true, | 'auth' => true, | ||
'username' => 'ton.adresse@mailo.com', | 'username' => '<span style="color: #0000FF;">ton.adresse@mailo.com</span>', | ||
'password' => 'ton_mot_de_passe_mailo', | 'password' => '<span style="color: #0000FF;">ton_mot_de_passe_mailo</span>', | ||
]; | ]; | ||
</pre> | </pre> | ||
Version du 20 octobre 2025 à 17:27
Remplacez les lignes suivantes dans fichier /var/www/html/wikimv/LocalSettings.php (Dans notre cas) :
## UPO means: this is also a user preference option $wgEnableEmail = true; $wgEnableUserEmail = true; # UPO $wgEmergencyContact = "apache@🌻.invalid"; $wgPasswordSender = "apache@🌻.invalid"; $wgEnotifUserTalk = false; # UPO $wgEnotifWatchlist = false; # UPO $wgEmailAuthentication = true;
Par ceci (avec vos paramètres) :
$wgEnableEmail = true;
$wgEnableUserEmail = true;
$wgEmergencyContact = "<span style="color: #0000FF;">ton.adresse@mailo.com</span>";
$wgPasswordSender = "<span style="color: #0000FF;">ton.adresse@mailo.com</span>";
$wgEnotifUserTalk = true;
$wgEnotifWatchlist = true;
$wgEmailAuthentication = true;
$wgSMTP = [
'host' => 'smtp.mailo.com',
'IDHost' => 'mailo.com',
'port' => 587,
'auth' => true,
'username' => '<span style="color: #0000FF;">ton.adresse@mailo.com</span>',
'password' => '<span style="color: #0000FF;">ton_mot_de_passe_mailo</span>',
];
Mailo supporte :
- SSL sur le port 465
- STARTTLS sur le port 587
Tester l’envoi d’un e-mail
Depuis le dossier racine de ton MediaWiki :
php maintenance/sendTestMail.php --to ton.adresse@mailo.com
Ne fonctionne pas avec une version récente de MediaWiki.
En cas de problème
- Vérifiez que le serveur autorise les connexions sortantes sur le port 465 ou 587.
- Si on obtient une erreur du type Could not authenticate, testez le mot de passe via un client mail pour être sûr.
- Mailo peut parfois bloquer les connexions trop fréquentes depuis un serveur non identifié : dans ce cas, connectez-vous à votre compte Mailo une fois depuis le navigateur pour valider votre adresse.