aardmail-miniclient
General
aardmail-miniclient is a small minimalistic client to help finding problems on getting/sending mail. It can be used to connect and talk to any text-based tcp-service. It can do an initial SSL-handshake, or initiate a SSL connection after the user typed STLS or STARTTLS. The TLS-connection for STARTTLS gets only started on positive return code, currently recognized are +OK (pop3) and 220 (SMTP).
miniclient uses poll() for asynchronous IO for terminal and network and therefore does not work under Windows at the moment.
Usage
Some of the parameters listed below only work when using SSL
- -c option
- General option to control cryptography settings. Valid options are 0 for no encryption, 1 for TLS with exit on error (like -t) and 2 for TLS with fallback to no encryption on error.
- -h hostname
- The hostname to connect to. This can be either a name resolvable via DNS or a numeric IP
- -s service
- The service to connect to. This can be either a string which is resolvable via /etc/services or a numeric portnumber.
- -t
- Use TLS and exit on error. Same like -c 1.
- -v level
- Set the verbosity. Valid values are 0 (no logging), 1 (deadly), 2 (error), 3 (warning) and 4 (info). The default is 2. It does not matter if you specify levels bigger than 4.
Download
There's a standalone binary of aardmail-miniclient for download: aardmail-miniclient.gz (Linux, dietlibc, OpenSSL, static)