swaks: add page (#7767)

* swaks: add page

* fix colons

* Apply suggestions from code review

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
Co-authored-by: Emily Grace Seville <emilyseville7cf@gmail.com>

* Apply suggestions from code review

Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
Co-authored-by: Emily Grace Seville <emilyseville7cf@gmail.com>
pull/1/head
Peter Babič 2022-07-15 16:47:36 +02:00 committed by GitHub
parent 69d02dd1e2
commit 7e47ce4669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

24
pages/linux/swaks.md Normal file
View File

@ -0,0 +1,24 @@
# 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 --to {{user@example.com}} --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 --to {{user@example.com}} --from {{me@example.com}} --auth {{CRAM-MD5}} --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 {{user@example.com}} --attach - --server {{test-server.example.com}} --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 --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 --to {{user@example.com}} --socket {{/var/lda.sock}} --protocol {{LMTP}}`