Intermediate
Package: swaks
swaks
Send a test SMTP message from the command line.
Syntax
swaks [options]
Description
swaks (Swiss Army Knife for SMTP) builds and sends a test email while showing the full SMTP conversation, making it the standard tool for verifying that a mail server accepts, relays and authenticates correctly.
Examples
swaks --to user@example.com
Send a basic test message to a recipient
swaks --to user@example.com --server mail.example.com --port 587 -tls
Test submission over STARTTLS on port 587
swaks --to user@example.com --auth LOGIN --auth-user me --auth-password secret
Test authenticated relay