Swaks (Swiss Army Knife SMTP) is a transaction-based tool you can use to test SMTP configurations in Email Delivery. Before you use Swaks, you must configure Email Delivery and take note of your SMTP sending information and SMTP credentials.
Many options and parameters can be used to test various scenarios with Swaks. When Swaks evaluates an option (that is, a flag with parameters), it does so in three steps:
First, it looks for a configuration file (default location or specified with --config).
Next, it looks for options in environment variables.
Finally, it looks at command line options. At each step, any options set earlier are overridden.
The following procedures assume the following:
The following example supplies options to Swaks via the command line in long form, for example, --server as opposed to the short form, -s.
The following example assumes the default behavior to connect through network sockets.
A local certificate is not required for a TLS connection to be negotiated. The following example assumes the default behavior where Swaks does not attempt certificate verification.
Swaks is primarily intended for use on UNIX-like operating systems with functionality based on known standards so it should work on most modern mail servers.
Configure Swaks to Send Email Through Email Delivery
To enable Swaks to test the configuration of Email Delivery: