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

NAME

6       imtest - interactive IMAP test program
7

SYNOPSIS

9       imtest [ -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 ] [ -z ] [ -v ] [ -I file ] [ -x file ]
13              [ -X file ] [ -o option=value ] hostname
14

DESCRIPTION

16       imtest  is  a utility that allows you to authenticate to a IMAP or IMSP
17       server and interactively issue commands to it. Once  authenticated  you
18       may  issue any IMAP or IMSP command by simply typing it in. It is capa‐
19       ble of multiple SASL authentication mechanisms and  handles  encryption
20       layers transparently. This utility is often used for testing the opera‐
21       tion of a imsp or imap server. Also those developing IMAP clients  find
22       it useful.
23

OPTIONS

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

SEE ALSO

98       imapd(8)
99
100
101
102CMU                              Project Cyrus                       IMTEST(1)
Impressum