1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 20:15:26 +02:00
tldr/pages/linux/swaks.md
Managor ae436c1b00
linux/*: add option placeholders (#16192)
* batch1

* batch2

* batch3

* batch4

* Update matchpathcon.md

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 21:21:53 +00:00

1.3 KiB

swaks

Swiss Army Knife SMTP, the all-purpose SMTP transaction tester. More information: https://github.com/jetmore/swaks/blob/develop/doc/base.pod.

  • Deliver a standard test email to user@example.com on port 25 of test-server.example.net:

swaks {{[-t|--to]}} {{user@example.com}} {{[-s|--server]}} {{test-server.example.net}}

  • Deliver a standard test email, requiring CRAM-MD5 authentication as user me@example.com. An "X-Test" header will be added to the email body:

swaks {{[-t|--to]}} {{user@example.com}} {{[-f|--from]}} {{me@example.com}} {{[-a|--auth]}} {{CRAM-MD5}} {{[-au|--auth-user]}} {{me@example.com}} --header-X-Test "{{test_email}}"

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

swaks {{[-t|--to]}} {{user@example.com}} --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]}} {{user@example.com}} --body {{path/to/gtube_file}}

  • Deliver a standard test email to user@example.com using the LMTP protocol via a UNIX domain socket file:

swaks {{[-t|--to]}} {{user@example.com}} --socket {{/var/lda.sock}} --protocol {{LMTP}}