IMTEST(1)
π IMTEST(1) π
okay so bestie, welcome to the Cyrus IMAP manual page for imtest. Yes, that's the manual name, yes it's iconic, no we're not skipping it. Sit down, grab a boba, and let's get into it. π§β¨
πΈ NAME πΈ
imtest β Cyrus IMAP documentation
Interactive IMAP test program. That's literally it. That's the whole vibe. π
β¨ SYNOPSIS β¨
imtest [ -t keyfile ] [ -p port ] [ -m mechanism ]
[ -a userid ] [ -u userid ] [ -k num ] [ -l num ]
[ -r realm ] [ -f file ] [ -n num ] [ -s ] [ -q ]
[ -c ] [ -i ] [ -z ] [ -v ] [ -I file ] [ -x file ]
[ -X file ] [ -w passwd ] [ -o option=value ]
[ -H client-ip ] hostname
Look at all those flags. It's giving main character energy. π
π¦ DESCRIPTION π¦
So imtest is this little utility that lets you authenticate to an IMAP server and then interactively issue commands to it. Like, you just type an IMAP command in and it goes. Fr fr. β¨
Once you're authenticated you may issue any IMAP command by simply typing it in. It's capable of multiple SASL authentication mechanisms and it handles encryption layers transparently β no cap, you don't gotta think about it. π«Ά
This utility is often used for testing the operation of an IMAP server. Also, people developing IMAP clients find it useful. So basically it's the people's tool. We love that for us. π
π OPTIONS π
-t keyfile,--keyfile=keyfileβ Enable TLS.keyfilecontains the TLS public and private keys. If you specify""it will negotiate a TLS encryption layer but not use TLS authentication. (Yes, empty string. Yes, that's a whole mood. π)-p port,--port=portβ Port to connect to. If you leave it off, it defaults toimapas defined in/etc/services. Periodt.-m mechanism,--mechanism=mechanismβ Forceimtestto usemechanismfor authentication. If you don't specify one, the strongest authentication mechanism supported by the server gets chosen for you. (It's picking your outfit for you, and honestly? Slay.) Specifyloginto use theLOGINcommand instead ofAUTHENTICATE. π-a userid,--authname=useridβ Userid to use for authentication; defaults to the current user. This is the userid whose password or credentials will be presented to the server for verification. iykyk-u userid,--username=useridβ Userid to use for authorization; defaults to the current user. This is the userid whose identity will be assumed after authentication.
NOTE: This is only used with SASL mechanisms that allow proxying (e.g. PLAIN). Not all of them do, so don't come for me if it doesn't work. π
-k num,--minssf=numβ Minimum protection layer required. That's it, that's the description, we keep it short and sweet. π-l num,--maxssf=numβ Maximum protection layer to use (0=none;1=integrity; etc). So like, for example, if you're using theGSSAPIauthentication mechanism, specifying0will forceimtestto not use any layer, and specifying1will force it to use the integrity layer. By default the maximum supported protection layer will be used. β¨-r realm,--realm=realmβ Specify the realm to use. Certain authentication mechanisms may require you to specify the realm. So if yours is being dramatic about it, this is the one. π-f file,--input-filename=fileβ Pipefileinto the connection after authentication. π«Ά-n num,--reauth-attempts=numβ Number of authentication attempts; default =1. The client will attempt to do SSL/TLS session reuse and/or fast reauth if possible.-s,--require-tlsβ Enable SSL over chosen protocol. πΈ-q,--require-compressionβ Enable IMAPCOMPRESSion (after authentication). Compress era. π-c,--do-challengeβ Enable challenge prompt callbacks. This will cause theOTPmechanism to ask for the one-time password instead of the secret pass-phrase (the library generates the correct response for you, so you don't have to do math at 3am). π₯-i,--no-initial-responseβ Don't send an initial client response for SASL mechanisms, even if the protocol supports it. Respectfully declining. π-I file,--pidfile=fileβ Echo the PID of the running process intofile. (This can be useful with-X. π)-v,--verboseβ Verbose. Print out more information than usual. It's a yapper and we love it. π£οΈ-z,--run-stress-testβ Timing test. β±οΈ-x file,--output-socket=fileβ Open the named socket for the interactive portion.-X fileβ Like-x, only it closes all file descriptors & daemonizes the process. Going full ghost mode. π»-w password,--password=passwordβ Password to use (if not supplied, we will prompt). π«Ά-o option=value,--sasl-option=option=valueβ Set the SASL option tovalue.-H client-ipβ Enable the HAProxy protocol and send the specified client IP address in a v1 header. If the address is"unknown", a v1 header withUNKNOWNprotocol will be sent. If the address is"local", a v2 header withLOCALcommand will be sent. Three whole behaviours in one flag, she contains multitudes. π
β EXAMPLES β
β¦there's nothing here bestie. The section exists, the examples do not. It's giving mystery. We move. π¦
π₯ SEE ALSO π₯
π AUTHOR π
The Cyrus Team, Nic Bernstein (Onlight)
π COPYRIGHT π
1993β2026, The Cyrus Team
and that's the whole page, bestie!! tysm for reading, you ate that. πβ¨
Version 3.12.4, dated Sep 09, 2026 β Cyrus IMAP, signing off. ππ«Ά
π¦ where this page comes from
- fedora 44: cyrus-imapd-utils 3.12.4-1.fc44 Β· BSD-Attribution-HPND-disclaimer
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms