logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 31-05-2018 08:42:27

sechanbask
Membre
Inscription : 14-10-2009

Configuration SSMTP

Bonjour,

j'ai configuré SSMTP pour envoyer des mails très facilement pour me prévenir de fin de tâches admin :

nano /etc/ssmtp/ssmtp.conf



# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster

# 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=smtp.gmail.com:587

# Where will the mail seem to come from?
#rewriteDomain=

# The full hostname
hostname=pveg6.atenbet.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=YES

UseSTARTTLS=YES
FromLineOverride=YES
AuthUser=xxxx@gmail.com
AuthPass=xxx
 





Je reçois bien mes mails sur mon adresse destinataire mais en plus je reçois un message d'erreur sur mon adresse d'expéditeur : par exemple :


La réponse était :

DNS Error: 31157689 DNS type 'mx' lookup of pveg6.atenbet.local responded with code NXDOMAIN Domain name not found: pveg6.atenbet.local

Final-Recipient: rfc822; 8BITMIME@pveg6.atenbet.local
Action: failed
Status: 4.0.0
Diagnostic-Code: smtp; DNS Error: 31157689 DNS type 'mx' lookup of pveg6.atenbet.local responded with code NXDOMAIN
 Domain name not found: pveg6.atenbet.local
Last-Attempt-Date: Wed, 30 May 2018 16:21:35 -0700 (PDT)


---------- Message transféré ----------
From: vzdump backup tool <>
To:
Cc:
Bcc:
Date: Thu, 31 May 2018 01:21:27 +0200
Subject: vzdump backup status (pveg6.atenbet.local) : backup successful


 




Comment je peux modifier cette configuration pour ne plus recevoir ces messages d'erreur ?

Edit à toto : Arrangé le BBcode utilisé pour faciliter la lecture des commandes par tous.

Hors ligne

#2 31-05-2018 13:36:50

Invité-X
Invité

Re : Configuration SSMTP

sechanbask a écrit :

Bonjour,

j'ai configuré SSMTP pour envoyer des mails très facilement pour me prévenir de fin de tâches admin :

nano /etc/ssmtp/ssmtp.conf



# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster

# 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=smtp.gmail.com:587

# Where will the mail seem to come from?
#rewriteDomain=

# The full hostname
hostname=pveg6.atenbet.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=YES

UseSTARTTLS=YES
FromLineOverride=YES
AuthUser=xxxx@gmail.com
AuthPass=xxx
 





Je reçois bien mes mails sur mon adresse destinataire mais en plus je reçois un message d'erreur sur mon adresse d'expéditeur : par exemple :


La réponse était :

DNS Error: 31157689 DNS type 'mx' lookup of pveg6.atenbet.local responded with code NXDOMAIN Domain name not found: pveg6.atenbet.local

Final-Recipient: rfc822; 8BITMIME@pveg6.atenbet.local
Action: failed
Status: 4.0.0
Diagnostic-Code: smtp; DNS Error: 31157689 DNS type 'mx' lookup of pveg6.atenbet.local responded with code NXDOMAIN
 Domain name not found: pveg6.atenbet.local
Last-Attempt-Date: Wed, 30 May 2018 16:21:35 -0700 (PDT)


---------- Message transféré ----------
From: vzdump backup tool <>
To:
Cc:
Bcc:
Date: Thu, 31 May 2018 01:21:27 +0200
Subject: vzdump backup status (pveg6.atenbet.local) : backup successful


 




Comment je peux modifier cette configuration pour ne plus recevoir ces messages d'erreur ?

Edit à toto : Arrangé le BBcode utilisé pour faciliter la lecture des commandes par tous.



Bonjour,

Tu utilise le compte root ou un utilisateur dans tes scripts ?

#3 31-05-2018 13:38:03

Invité-X
Invité

Re : Configuration SSMTP

Par contre dans mon ssmtp qui fcontionne c'est :

# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=tonmail.

Pied de page des forums