swaks --to test@example.com --server smtp.example.com

Category: Mail Servers & Postfix

swaks --to test@example.com --server smtp.example.com

Send a standard test email to a server

Performs a full SMTP transaction to the given server with a generated message, printing every exchange. The default target port is 25. Zero errors and a 250 response mean the server accepted the mail. Add --from to override the envelope sender.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.