1SMTPTEST(1)                 General Commands Manual                SMTPTEST(1)
2
3
4

NAME

6       smtptest - interactive SMTP test program
7

SYNOPSIS

9       smtptest [ -t keyfile ] [ -p port ] [ -m mechanism ]
10                [ -a userid ] [ -u userid ] [ -k num ] [ -l num ]
11                [ -r realm ] [ -f file ] [ -n num ] [ -s ] [ -c ]
12                [ -i ] [ -o option=value ] [ -v ] hostname
13

DESCRIPTION

15       smtptest  is a utility that allows you to authenticate to a SMTP server
16       and interactively issue commands to  it.  Once  authenticated  you  may
17       issue  any SMTP command by simply typing it in. It is capable of multi‐
18       ple SASL authentication mechanisms and handles encryption layers trans‐
19       parently.  This  utility  is  often used for testing the operation of a
20       smtp server. Also those developing SMTP clients find it useful.
21

OPTIONS

23       -t keyfile
24              Enable TLS.  keyfile contains the TLS public and  private  keys.
25              Specify  ""  to negotiate a TLS encryption layer but not use TLS
26              authentication.
27
28       -p port
29              Port to connect to. If left off this defaults to smtp as defined
30              in /etc/services.
31
32       -m mechanism
33              Force smtptest to use mechanism for authentication. If not spec‐
34              ified the strongest authentication mechanism  supported  by  the
35              server is chosen.
36
37       -a userid
38              Userid  to use for authentication; defaults to the current user.
39              This is the userid whose password or credentials  will  be  pre‐
40              sented to the server for verification.
41
42       -u userid
43              Userid  to  use for authorization; defaults to the current user.
44              This is the userid whose identity will be assumed after  authen‐
45              tication.   NOTE:  This  is  only used with SASL mechanisms that
46              allow proxying (e.g. PLAIN, DIGEST-MD5).
47
48       -k num Minimum protection layer required.
49
50       -l num Maximum protection layer to use (0=none; 1=integrity; etc).  For
51              example  if  you are using the KERBEROS_V4 authentication mecha‐
52              nism specifying 0 will force smtptest to not use any  layer  and
53              specifying  1  will  force  it  to  use the integrity layer.  By
54              default the maximum supported protection layer will be used.
55
56       -r realm
57              Specify the realm  to  use.  Certain  authentication  mechanisms
58              (e.g. DIGEST-MD5) may require one to specify the realm.
59
60       -f file
61              Pipe file into connection after authentication.
62
63       -n num Number of authentication attempts; default = 1.  The client will
64              attempt to do SSL/TLS session reuse  and/or  fast  reauth  (e.g.
65              DIGEST-MD5), if possible.
66
67       -s     Enable SMTP over SSL (smtps).
68
69       -c     Enable  challenge  prompt  callbacks.   This  will cause the OTP
70              mechanism to ask for the the one-time password  instead  of  the
71              secret pass-phrase (library generates the correct response).
72
73       -i     Don't  send an initial client response for SASL mechanisms, even
74              if the protocol supports it.
75
76       -o option=value
77              Set the SASL option to value.
78
79       -v     Verbose. Print out more information than usual.
80

SEE ALSO

82       sendmail(8)
83
84
85
86CMU                              Project Cyrus                     SMTPTEST(1)
Impressum