sendmail et paramétrage

thierryR Membre non connecté
-
- Voir le profil du membre thierryR
- Inscrit le : 02/02/2010
- Site internet
Reprise du message précédent
Eh non je te le mets ci dessous.Sur le raspi où ça fonctionne
Code BASH :
cat /etc/ssmtp/revaliases # sSMTP aliases # # Format: local_account:outgoing_address:mailhub # # Example: root:your_login@your.domain:mailhub.your.domain[:port] # where [:port] is an optional port number that defaults to 25.
et sur mageia où ça ne fonctionne pas.
Code BASH :
cat /etc/ssmtp/revaliases # sSMTP aliases # # Format: local_account:outgoing_address:mailhub # # Example: root:your_login@your.domain:mailhub.your.domain[:port] # where [:port] is an optional port number that defaults to 25.
débusqueur de bugs et chercheur en améliorations
Amicalement vôtre.
Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

funix Membre non connecté
-
- Voir le profil du membre funix
- Inscrit le : 17/12/2012
- Site internet
- Groupes :
root:thierry.rouillon@gmail.com:smtp.gmail.com:587
et voir ce que ça donne

thierryR Membre non connecté
-
- Voir le profil du membre thierryR
- Inscrit le : 02/02/2010
- Site internet
Et voici le résultat:
Code BASH :
echo "test"|mail -s "test" thierry.rouillon@laposte.net send-mail: Cannot open smtp.gmail.com:587
Grrrr. Et aucune indication supplémentaire. J'ai déjà cherché des logs, mais rien n'existe.
En mode verbose
Code BASH :
echo "test"|mail -vs "test" thierry.rouillon@laposte.net [<-] 220 smtp.gmail.com ESMTP z84sm4161170wmh.27 - gsmtp [->] EHLO Thierry_bureau [<-] 250 SMTPUTF8 [->] STARTTLS [<-] 220 2.0.0 Ready to start TLS send-mail: Cannot open smtp.gmail.com:587
En bref, on tourne en rond.
Est ce que le EHLO pourrait être bloquant s'il ne correspond pas exactement à hostname ?
débusqueur de bugs et chercheur en améliorations
Amicalement vôtre.
Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

thierryR Membre non connecté
-
- Voir le profil du membre thierryR
- Inscrit le : 02/02/2010
- Site internet
débusqueur de bugs et chercheur en améliorations
Amicalement vôtre.
Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

thierryR Membre non connecté
-
- Voir le profil du membre thierryR
- Inscrit le : 02/02/2010
- Site internet
Code BASH :
ls /usr/share/sendmail-cf/cf/ Build* cs-solaris2.mc generic-hpux10.cf generic-mpeix.cf generic-solaris.cf huginn.cs.mc mandrake.mc sendmail-real-time.mc ucbarpa.mc chez.cs.mc cs-sunos4.1.mc generic-hpux10.mc generic-mpeix.mc generic-solaris.mc knecht.mc python.cs.mc submit-build.cf ucbvax.mc clientproto.mc cs-ultrix4.mc generic-hpux9.cf generic-nextstep3.3.cf generic-sunos4.1.cf mail.cs.mc README submit.cf uucpproto.mc cs-hpux10.mc cyrusproto.mc generic-hpux9.mc generic-nextstep3.3.mc generic-sunos4.1.mc mail.eecs.mc real-time.mc submit.mc vangogh.cs.mc cs-hpux9.mc generic-bsd4.4.cf generic-linux.cf generic-osf1.cf generic-ultrix4.cf mailspool.cs.mc s2k-osf1.mc submit.mc.mandriva cs-osf1.mc generic-bsd4.4.mc generic-linux.mc generic-osf1.mc generic-ultrix4.mc Makefile s2k-ultrix4.mc tcpproto.mc
Pas de config.mc ici .... mais plein de fichier en .mc ?
Édité par thierryR Le 06/05/2017 à 23h23
débusqueur de bugs et chercheur en améliorations
Amicalement vôtre.
Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

thierryR Membre non connecté
-
- Voir le profil du membre thierryR
- Inscrit le : 02/02/2010
- Site internet
près installation j'ai un autre message.
Code BASH :
echo "test"|mail -vs "test" thierry.rouillon@laposte.net thierry.rouillon@laposte.net... Connecting to [127.0.0.1] via relay... thierry.rouillon@laposte.net... Deferred: Connection refused by [127.0.0.1]
Il semblerait que SMTP passe maintenant, mais ça bloque un peu plus loin.
débusqueur de bugs et chercheur en améliorations
Amicalement vôtre.
Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

thierryR Membre non connecté
-
- Voir le profil du membre thierryR
- Inscrit le : 02/02/2010
- Site internet
Code BASH :
systemctl start sendmail
puis j'ai réessayé.
Code BASH :
echo "test"|mail -vs "test" thierry.rouillon@laposte.net thierry.rouillon@laposte.net... Connecting to [127.0.0.1] via relay... 220 thierry.bureau ESMTP Sendmail 8.15.1/8.15.1; Sat, 6 May 2017 23:48:35 +0200 >>> EHLO thierry.bureau 250-thierry.bureau Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH LOGIN PLAIN 250-DELIVERBY 250 HELP >>> MAIL From:<thierry@thierry.bureau> SIZE=224 AUTH=thierry@thierry.bureau 250 2.1.0 <thierry@thierry.bureau>... Sender ok >>> RCPT To:<thierry.rouillon@laposte.net> >>> DATA 250 2.1.5 <thierry.rouillon@laposte.net>... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 v46LmZLP018279 Message accepted for delivery thierry.rouillon@laposte.net... Sent (v46LmZLP018279 Message accepted for delivery) Closing connection to [127.0.0.1] >>> QUIT 221 2.0.0 thierry.bureau closing connection
C'est bizarre, ça semble parti mais ça n'arrive pas. Encore un mail qui va se perdre dans la savane africaine.

Édité par thierryR Le 06/05/2017 à 23h53
débusqueur de bugs et chercheur en améliorations
Amicalement vôtre.
Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

thierryR Membre non connecté
-
- Voir le profil du membre thierryR
- Inscrit le : 02/02/2010
- Site internet
Code BASH :
----- The following addresses had permanent fatal errors ----- <thierry.rouillon@laposte.net> (reason: 501 5.0.1 Emetteur invalide. Invalid Sender. LPN007_405)
débusqueur de bugs et chercheur en améliorations
Amicalement vôtre.
Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

thierryR Membre non connecté
-
- Voir le profil du membre thierryR
- Inscrit le : 02/02/2010
- Site internet
Est ce que sendmail ou ssmtp fonctionne sous mageia ?
Merci
débusqueur de bugs et chercheur en améliorations
Amicalement vôtre.
Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

m@rco123 Membre non connecté
-
- Voir le profil du membre m@rco123
- Inscrit le : 15/05/2009
- Groupes :
https://www.mageialinux-online.org/forum/topic.php?id=17917#m172312
Lenovo 110-17acl
cg Mullins [Radeon R3 Graphics] / ssd SanDisk 250Go
Mageia 9 plasma 64b
packard ls11hr
cg intel 810 / ssd SanDisk 128Go
Mageia 9 plasma 64b
cg Mullins [Radeon R3 Graphics] / ssd SanDisk 250Go
Mageia 9 plasma 64b
packard ls11hr
cg intel 810 / ssd SanDisk 128Go
Mageia 9 plasma 64b

thierryR Membre non connecté
-
- Voir le profil du membre thierryR
- Inscrit le : 02/02/2010
- Site internet
perl-MIME-Lite
perl-MIME-tools
perl-MIME-Types
perl-MailTools
sont tous installé.
Pourtant il y a un truc.
Code BASH :
mail -v thierry.rouillon@laposte.net Subject: test je fais un test . EOT thierry.rouillon@laposte.net... Connecting to [127.0.0.1] via relay... 220 thierry.bureau ESMTP Sendmail 8.15.1/8.15.1; Sat, 13 May 2017 17:38:14 +0200 >>> EHLO thierry.bureau 250-thierry.bureau Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH LOGIN PLAIN 250-DELIVERBY 250 HELP >>> MAIL From:<thierry@thierry.bureau> SIZE=235 AUTH=thierry@thierry.bureau 250 2.1.0 <thierry@thierry.bureau>... Sender ok >>> RCPT To:<thierry.rouillon@laposte.net> >>> DATA 250 2.1.5 <thierry.rouillon@laposte.net>... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 v4DFcE5f005760 Message accepted for delivery thierry.rouillon@laposte.net... Sent (v4DFcE5f005760 Message accepted for delivery) Closing connection to [127.0.0.1] >>> QUIT 221 2.0.0 thierry.bureau closing connection Vous avez du nouveau courrier dans /var/spool/mail/thierry
Et quand je fouille le spool je trouve:
Code BASH :
From MAILER-DAEMON@localhost.localdomain Sat May 13 17:38:39 2017 Return-Path: <MAILER-DAEMON@localhost.localdomain> Received: from localhost (localhost) by thierry.bureau (8.15.1/8.15.1) id v4DFcd5f005762; Sat, 13 May 2017 17:38:39 +0200 Date: Sat, 13 May 2017 17:38:39 +0200 From: Mail Delivery Subsystem <MAILER-DAEMON@localhost.localdomain> Message-Id: <201705131538.v4DFcd5f005762@thierry.bureau> To: <thierry@thierry.bureau> MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary="v4DFcd5f005762.1494689919/thierry.bureau" Subject: Returned mail: see transcript for details Auto-Submitted: auto-generated (failure) This is a MIME-encapsulated message --v4DFcd5f005762.1494689919/thierry.bureau The original message was received at Sat, 13 May 2017 17:38:14 +0200 from localhost [127.0.0.1] ----- The following addresses had permanent fatal errors ----- <thierry.rouillon@laposte.net> (reason: 501 5.0.1 Emetteur invalide. Invalid Sender. LPN007_405)
Donc si l'emetteur est invalide, je devrais avoir un défaut de paramétrage dans SSMTP.
Hors celui-ci est recopier depuis un raspi qui fonctionne très bien ainsi.
Je ne comprends pas bien.
débusqueur de bugs et chercheur en améliorations
Amicalement vôtre.
Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller

Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie