swaks
Swaks stands for "Swiss Army Knife for SMTP". It is a command line tool designed for testing and troubleshooting SMTP servers. It is available for various operating systems, including Linux, macOS, and Windows.
Swaks allows users to send both simple and complex test emails. It supports a wide range of SMTP features, such as authentication, SSL/TLS encryption, MIME attachments, and SMTP AUTH.
Users can configure various aspects of the email, including the sender and recipient addresses, subject, body, headers, and even simulate delivery times.
Swaks can also be used to diagnose common issues with SMTP servers, such as checking for open relays, testing email routing, or verifying the setup of email servers. It provides detailed reports on the results, including successful deliveries or any errors encountered.
The output is highly customizable, allowing users to format the results in different ways or save them to file for further analysis. Swaks also supports automation and scripting by providing exit codes and options for quiet operation.
Overall, Swaks is a versatile and powerful command line tool for testing and troubleshooting SMTP servers, making it a valuable resource for system administrators, email developers, and anyone involved in email infrastructure.
List of commands for swaks:
-
swaks:tldr:32a71 swaks: 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}"try on your machineexplain this command
-
swaks:tldr:961f9 swaks: 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}try on your machineexplain this command
-
swaks:tldr:dc845 swaks: 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}try on your machineexplain this command
-
swaks:tldr:df249 swaks: 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}try on your machineexplain this command