Comment tester en ligne de commande l'envoi des mails sous Linux ?
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Comment tester en ligne de commande l'envoi des mails sous Linux ?

by
Christophe T. | Libre Master
Newbie
Created on 2022-01-26 16:47:09 (edited on 2024-09-04 13:01:59) in Serveurs Privés Virtuels (VPS)

Voici un script en bash qui permet de tester l'envoi d'un mail de votre serveur Linux.

Attention : Il faut avoir installé le package **bsd-mailx**!

Voici le script et à la fin comment le lancer (à mettre dans la PATH) :

https://libremaster.ovh/comment-tester-lenvoi-demails-depuis-son-serveur-linux/

Il se lance commet ça :
`mail-tester.sh -m admin@domain-admin.com -r root@domain-du-server.net`