The sys admin's daily grind: Swaks

For the Protocol

Article from Issue 145/2012
Author(s):

Searching for errors on an SMTP server via Telnet and test mails can seem like a never-ending obstacle course. The utility called Swaks helps bring the finish line within reach.

SMTP is a plain text protocol, which proves to be quite useful when searching for errors on the mail server. I can simply connect to port 25 via Telnet and then act like a mail client. By means of the server's answers, I can quickly see where the problem is – theoretically, at least. In practice, as you may have already guessed, things don't go that smoothly.

SMTP has become fatter and fatter over the years, not least because security functions were desperately needed. Although basic commands like HELO <FQDN> or RCPT are easy for me to type quickly, authentication with CRAM-SHA-1 no longer has anything to do with plain text as far as I am concerned, and any fun I might have been having is long gone.

Swaks [1] has made diagnosing mail servers easy again. With the right parameters, the tool executes the SMTP dialogs for the diagnosis all by itself. I just send a simple test mail with:

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Charly's Column: Swaks

    Searching for errors on an SMTP server via Telnet and test mails can seem like a never-ending obstacle course. The utility called Swaks helps bring the finish line within reach.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News