#1 Le 24/11/2015, à 14:44
- olivierbw
SSMTP : Configuration avec Gandi
Bonjour,
Je n'arrive pas à finaliser ma configuration pour utiliser ssmtp avec Gandi.
La commande suivante :
echo "Bonjour" | mail -s "Sujet du mail" adresse@provider.com
Retourne :
mail: impossible d'expédier le message: Processus terminé avec un état de sortie non nul
Voici le paramétrage actuel du fichier ssmtp.conf :
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=formation
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
# mailhub=mail
# Where will the mail seem to come from?
# rewriteDomain=
# The full hostname
hostname=notify@formation.local
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
#FromLineOverride=NO
# SMTP Gandi Mail
mailhub=mail.gandi.net:465
AuthUser=***********@**********.COM
AuthPass=**********
UseTLS=YES
#UseSTARTTLS=YES
Je n'ai pas donné d'instructions au fichier "revaliases".
Enfin, voici ce que j'ai dans /var/log/mail.err :
Nov 24 14:24:00 formation-server sSMTP[6740]: Unable to locate mailhub
Nov 24 14:24:00 formation-server sSMTP[6740]: Cannot open mailhub:25
J'ai autorisé les ports 25 et 465 en OUT sur mon firewall.
Merci pour votre aide.
Dernière modification par olivierbw (Le 24/11/2015, à 14:48)
Hors ligne
#2 Le 24/11/2015, à 16:24
- olivierbw
Re : SSMTP : Configuration avec Gandi
Problème résolu !
Suite à l'installation de Nagios, le fichier ssmtp.conf était dans le mauvais groupe d'utilisateurs.
Hors ligne