<html> <head> <meta name="Content-Style" content="text/css"> </head> <body> <a href="#NAME">NAME</a><br> <a href="#SYNOPSIS">SYNOPSIS</a><br> <a href="#DESCRIPTION">DESCRIPTION</a><br> <a href="#OPTIONS">OPTIONS</a><br> <a href="#SEE ALSO">SEE ALSO</a><br> <a href="#sendmail(8)">sendmail(8)</a><br> <!-- Creator : groff version 1.15 --> <!-- CreationDate: Mon Feb 3 16:31:15 2003 --> <!-- Total number of pages: 1 --> <!-- Page: 1 --> <!-- left margin: 100 --> <!-- right margin: 750 --> <a name="NAME"></a><h2>NAME</h2><p><font size=3>smtptest - interactive SMTP test program</p> <a name="SYNOPSIS"></a><h2>SYNOPSIS</h2><p><font size=3><B>smtptest</B> <font size=3>[ <font size=3><B>-t</B> <font size=3><I>keyfile</I> <font size=3>] [ <font size=3><B>-p</B> <font size=3><I>port</I> <font size=3>] [ <font size=3><B>-m</B> <font size=3><I>mechanism</I> <font size=3>]<br> <span style=" text-indent: 0.2700in;"></span>[ <font size=3><B>-u</B> <font size=3><I>user</I> <font size=3>] [ <font size=3><B>-a</B> <font size=3><I>user</I> <font size=3>] [ <font size=3><B>-k</B> <font size=3><I>num</I> <font size=3>] [ <font size=3><B>-l</B> <font size=3><I>num</I> <font size=3>]<br> <span style=" text-indent: 0.2700in;"></span>[ <font size=3><B>-r</B> <font size=3><I>realm</I> <font size=3>] [ <font size=3><B>-f</B> <font size=3><I>file</I> <font size=3>] [ <font size=3><B>-n</B> <font size=3><I>num</I> <font size=3>] [ <font size=3><B>-s</B> <font size=3>] [ <font size=3><B>-c</B> <font size=3>]<br> <span style=" text-indent: 0.2700in;"></span>[ <font size=3><B>-v</B> <font size=3>] <font size=3><I>hostname</p> </I><a name="DESCRIPTION"></a><h2>DESCRIPTION</h2><p><font size=3><I>smtptest</I> <font size=3>is a utility that allows you to authenticate to a SMTP server and interactively issue commands to it. Once authenticated you may issue any SMTP command by simply typing it in. It is capable of multiple SASL authentica- tion mechanisms and handles encryption layers transparently. This utility is often used for testing the operation of a smtp server. Also those developing SMTP clients find it useful.</p> <a name="OPTIONS"></a><h2>OPTIONS</h2> <table width="100%" rules="none" frame="none" cols="3"> <tr valign="top" align="left"> <td valign="top" align="left" width="12.7692%"> <p><font size=3><B>-t</B> <font size=3><I>keyfile</p> </I></td> <td valign="top" align="left" width="7.2308%"> </td> <td valign="top" align="left" width="80.0000%"> <p><font size=3>Enable TLS. <font size=3><I>keyfile</I> <font size=3>contains the TLS public and private keys. Specify <font size=3><B>""</B> <font size=3>to negotiate a TLS encryption layer but not use TLS authentication.</p> </td> </tr> <tr valign="top" align="left"> <td valign="top" align="left" width="12.7692%"> <p><font size=3><B>-p</B> <font size=3><I>port</p> </I><p><font size=3><B>-m</B> <font size=3><I>mechanism</p> </I></td> <td valign="top" align="left" width="7.2308%"> </td> <td valign="top" align="left" width="80.0000%"> <p><font size=3>Port to connect to. If left off this defaults to <font size=3><B>smtp</B> <font size=3>as defined in /etc/services.</p> <p><font size=3>Force smtptest to use <font size=3><I>mechanism</I> <font size=3>for authentication. If not specified the strongest authenti- cation mechanism supported by the server is chosen.</p> </td> </tr> <tr valign="top" align="left"> <td valign="top" align="left" width="12.7692%"> <p><font size=3><B>-u</B> <font size=3><I>user</p> </I><p><font size=3><B>-a</B> <font size=3><I>user</p> </I><p><font size=3><B>-k</B> <font size=3><I>num</p> </I><p><font size=3><B>-l</B> <font size=3><I>num</p> </I></td> <td valign="top" align="left" width="7.2308%"> </td> <td valign="top" align="left" width="80.0000%"> <p><font size=3>Username to use for authentication; defaults to the current user.</p> <p><font size=3>Authname to use for authentication; defaults to the current user.</p> <p><font size=3>Minimum protection layer required.</p> <p><font size=3>Maximum protection layer to use (<font size=3><B>0</B><font size=3>=none; <font size=3><B>1=</B><font size=3>integrity; etc). For example if you are using the KERBEROS_V4 authentication mechanism specifying <font size=3><B>0</B> <font size=3>will force smtptest to not use any layer and specifying <font size=3><B>1</B> <font size=3>will force it to use the integrity layer. By default the maximum supported protection layer will be used.</p> </td> </tr> <tr valign="top" align="left"> <td valign="top" align="left" width="12.7692%"> <p><font size=3><B>-r</B> <font size=3><I>realm</p> </I></td> <td valign="top" align="left" width="7.2308%"> </td> <td valign="top" align="left" width="80.0000%"> <p><font size=3>Specify the <font size=3><I>realm</I> <font size=3>to use. Certain authentication mechanisms (e.g. DIGEST-MD5) may require one to specify the realm.</p> </td> </tr> <tr valign="top" align="left"> <td valign="top" align="left" width="12.7692%"> <p><font size=3><B>-f</B> <font size=3><I>file</p> </I><p><font size=3><B>-n</B> <font size=3><I>num</p> </I></td> <td valign="top" align="left" width="7.2308%"> </td> <td valign="top" align="left" width="80.0000%"> <p><font size=3>Pipe <font size=3><I>file</I> <font size=3>into connection after authentication.</p> <p><font size=3>Number of authentication attempts; default = 1. The client will attempt to do SSL/TLS ses- sion reuse and/or fast reauth (e.g. DIGEST-MD5), if possible.</p> </td> </tr> <tr valign="top" align="left"> <td valign="top" align="left" width="12.7692%"> <p><font size=3><B>-s</p> </B><p><font size=3><B>-c</p> </B></td> <td valign="top" align="left" width="7.2308%"> </td> <td valign="top" align="left" width="80.0000%"> <p><font size=3>Enable SMTP over SSL (smtps).</p> <p><font size=3>Enable challenge prompt callbacks. This will cause the OTP mechanism to ask for the the one-time password instead of the secret pass-phrase (library generates the correct response).</p> </td> </tr> <tr valign="top" align="left"> <td valign="top" align="left" width="12.7692%"> <p><font size=3><B>-v</p> </B></td> <td valign="top" align="left" width="7.2308%"> </td> <td valign="top" align="left" width="80.0000%"> <p><font size=3>Verbose. Print out more information than usual.</p> </td> </tr> </table> <br> <a name="SEE ALSO"></a><h2>SEE ALSO</h2><a name="sendmail(8)"></a><h2>sendmail(8)</h2></body> </html>