SWAKS

Description

swaks’ primary design goal is to be a flexible, scriptable, transaction-oriented SMTP test tool. It handles SMTP features and extensions such as TLS, authentication, and pipelining; multiple version of the SMTP protocol including SMTP, ESMTP, and LMTP; and multiple transport methods including unix-domain sockets, internet-domain sockets, and pipes to spawned processes.

SWAKS options can be specified in environment variables, configuration files, and the command line allowing maximum configurability and ease of use for operators and scripters.

 Example

cyborg@cyborg:~$ echo "This is the message body" | swaks --to someone@example.com --from "cyborgunix@gmail.com" --server smtp.gmail.com --auth LOGIN --auth-user "cyborgunix@gmail.com" --auth-password "********" -tls
=== Trying smtp.gmail.com:587...
=== Connected to smtp.gmail.com.
<-  220 smtp.gmail.com ESMTP nh3sm2487260pdb.35 - gsmtp
 -> EHLO cyborg
<-  250-smtp.gmail.com at your service, [122.168.67.87]
<-  250-SIZE 35882577
<-  250-8BITMIME
<-  250-STARTTLS
<-  250-ENHANCEDSTATUSCODES
<-  250-PIPELINING
<-  250-CHUNKING
<-  250 SMTPUTF8
 -> STARTTLS
<-  220 2.0.0 Ready to start TLS
=== TLS started with cipher TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128
=== TLS no local certificate set
=== TLS peer DN="/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com"




		
	
	
0 Comments

Leave a reply

CONTACT US

We're are building as a community and a team. Be a part of it.

Sending

©2017 Ztrela Knowledge Solutions Pvt. Ltd

Log in with your credentials

Forgot your details?