← retour aux snippets

swaks: tester un serveur SMTP en détail

Envoyer un mail de test avec TLS, auth, et afficher tout l'échange SMTP.

bash network #swaks#smtp#tls

objectif

Diagnostiquer des problèmes SMTP (auth, STARTTLS, certificats).

code minimal

swaks --to user@example.org --server smtp.data.pm --ehlo data.pm

utilisation

# avec AUTH LOGIN et STARTTLS
swaks --to user@example.org --server smtp.data.pm --tls --auth LOGIN --auth-user user --auth-password pass

variante(s) utile(s)

# forcer un cipher/proto via --tls-*
swaks --to user@example.org --server smtp.data.pm --tls --tls-versions TLSv1.2

notes

  • paquet souvent nommé swaks.
  • affiche la session complète utile au debug.