commands.sh

swaks

linux

Swiss Army Knife SMTP, the all-purpose SMTP transaction tester.

More info →

Options (6)

-t, --toboolean

Deliver a standard test email to `[email protected]` on port 25 of `test-server.example.net`

Example: swaks {{[-t|--to]}} {{[email protected]}} {{[-s|--server]}} {{test-server.example.net}}
-s, --serverboolean

Deliver a standard test email to `[email protected]` on port 25 of `test-server.example.net`

Example: swaks {{[-t|--to]}} {{[email protected]}} {{[-s|--server]}} {{test-server.example.net}}
-f, --fromboolean

Deliver a standard test email, requiring CRAM-MD5 authentication as user `[email protected]`. An "X-Test" header will be added to the email body

Example: swaks {{[-t|--to]}} {{[email protected]}} {{[-f|--from]}} {{[email protected]}} {{[-a|--auth]}} {{CRAM-MD5}} {{[-au|--auth-user]}} {{[email protected]}} --header-X-Test "{{test_email}}"
-a, --authboolean

Deliver a standard test email, requiring CRAM-MD5 authentication as user `[email protected]`. An "X-Test" header will be added to the email body

Example: swaks {{[-t|--to]}} {{[email protected]}} {{[-f|--from]}} {{[email protected]}} {{[-a|--auth]}} {{CRAM-MD5}} {{[-au|--auth-user]}} {{[email protected]}} --header-X-Test "{{test_email}}"
--auth-userboolean

Deliver a standard test email, requiring CRAM-MD5 authentication as user `[email protected]`. An "X-Test" header will be added to the email body

Example: swaks {{[-t|--to]}} {{[email protected]}} {{[-f|--from]}} {{[email protected]}} {{[-a|--auth]}} {{CRAM-MD5}} {{[-au|--auth-user]}} {{[email protected]}} --header-X-Test "{{test_email}}"
-n, --suppress-databoolean

Test a virus scanner using EICAR in an attachment. Don't show the message DATA part

Example: swaks {{[-t|--to]}} {{[email protected]}} --attach - {{[-s|--server]}} {{test-server.example.com}} {{[-n|--suppress-data]}} {{path/to/eicar.txt}}

Examples (5)

Deliver a standard test email to `[email protected]` on port 25 of `test-server.example.net`

swaks [-t|--to] [email protected] [-s|--server] test-server.example.net

Deliver a standard test email, requiring CRAM-MD5 authentication as user `[email protected]`. An "X-Test" header will be added to the email body

swaks [-t|--to] [email protected] [-f|--from] [email protected] [-a|--auth] CRAM-MD5 [-au|--auth-user] [email protected] --header-X-Test "test_email"

Test a virus scanner using EICAR in an attachment. Don't show the message DATA part

swaks [-t|--to] [email protected] --attach - [-s|--server] test-server.example.com [-n|--suppress-data] path/to/eicar.txt

Test a spam scanner using GTUBE in the body of an email, routed via the MX records for `example.com`

swaks [-t|--to] [email protected] --body path/to/gtube_file

Deliver a standard test email to `[email protected]` using the LMTP protocol via a UNIX domain socket file

swaks [-t|--to] [email protected] --socket /var/lda.sock --protocol LMTP
made by @shridhargupta | data from tldr-pages