# [[SWAKS]] _Created: 2025-10-08_ | #email #smtp | [[010 System Administration MOC|System Administration]] - **Homepage**: https://jetmore.org/john/code/swaks/ - **Github**: https://github.com/jetmore/swaks - **Homebrew**: `brew install swaks` Swaks (Swiss Army Knife for SMTP) is a SMTP test tool. ## Typical use ```bash swaks --to [email protected] --from [email protected] --server mailrise.service.consul --port 8025 --header "Subject: Problem" --body "I can't send emails, probably." ``` ## Simplest form ```bash swaks -s mailserver --to [email protected] ``` This will send a test email to the address via the mail server. - Swaks supports the [.netrc](https://linux.die.net/man/5/netrc) file. So if the server needs authentication, and an appropriate login/password for the server exists in `.netrc`, then that will be used. Actually it can get even simpler by dropping the server name, in which case Swaks will use the MX records for the user.