LMTPTEST(1)
β¨ LMTPTEST(1) β¨
okay bestie, so lmtptest is what we're talking about here β it lives in the Cyrus IMAP documentation family, and it's the little sister of lmtptest(1). π
π NAME π
lmtptest β Cyrus IMAP documentation
It's an interactive LMTP test program. Periodt.
Real talk: this thing is actually installed as a hard link to imtest(1). So it's the same binary wearing a different outfit. π
What does it do? It lets you authenticate and send LMTP commands to the server. 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
π DESCRIPTION π
So imtest is a utility that lets you authenticate to an IMAP server and then interactively issue commands to it. Once you're authenticated, you can literally just type any IMAP command in and it goes. That easy. π
It's got range:
- it's capable of multiple SASL authentication mechanisms β¨
- it handles encryption layers transparently β you don't even have to think about it π«Ά
Who's this for, you ask? People use this utility a lot for testing how an IMAP server is actually operating. And people developing IMAP clients? They find it super useful too. It's giving tool-of-the-people. π
π OPTIONS π
-t keyfile,--keyfile=keyfileβ Turns on TLS. The keyfile holds the TLS public and private keys. If you pass""you'll negotiate a TLS encryption layer but not use TLS authentication. No key, just vibes.-p port,--port=portβ The port to connect to. Leave it off and it defaults toimapas defined in/etc/services.-m mechanism,--mechanism=mechanismβ Forcesimtestto use mechanism for authentication. Don't specify one and it picks the strongest authentication mechanism the server supports. And if you saylogin, it'll use theLOGINcommand instead ofAUTHENTICATE. π«‘-a userid,--authname=useridβ The userid used for authentication; defaults to the current user. This is the userid whose password (or credentials) gets presented to the server to be verified. That's the whole job.-u userid,--username=useridβ The userid used for authorization; defaults to the current user. This is the userid whose identity gets assumed after authentication. π
NOTE: This is only used with SASL mechanisms that allow proxying (e.g. PLAIN).
-k num,--minssf=numβ Minimum protection layer required.-l num,--maxssf=numβ Maximum protection layer to use (0=none;1=integrity; etc). Example time: if you're using theGSSAPIauthentication mechanism, specifying0forcesimtestto skip any layer entirely, and specifying1forces it to use the integrity layer. By default, the maximum supported protection layer gets used.-r realm,--realm=realmβ Specify the realm to use. Some authentication mechanisms are picky and require you to specify a realm. It's giving β¨requirementsβ¨.-f file,--input-filename=fileβ Pipes file into 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 it possibly can. Reuse era. β»οΈ-s,--require-tlsβ Enable SSL over the chosen protocol.-q,--require-compressionβ Enable IMAPCOMPRESSion (after authentication). Squish it. π-c,--do-challengeβ Enable challenge prompt callbacks. This makes theOTPmechanism ask for the one-time password instead of the secret pass-phrase (the library generates the correct response for you, bestie, don't stress).-i,--no-initial-responseβ Don't send an initial client response for SASL mechanisms, even if the protocol supports it. Justβ¦ no. π-I file,--pidfile=fileβ Echoes the PID of the running process into file. (This can be useful with-X.) π₯-v,--verboseβ Verbose. Prints out more information than usual. Info dump, but make it fashion.-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. Same energy, more chaos. π-w password,--password=passwordβ Password to use (if it's not supplied, we will prompt).-o option=value,--sasl-option=option=valueβ Set the SASL option to value.-H client-ipβ Enable the HAProxy protocol and send the specified client IP address in av1header. If the address is"unknown", av1header withUNKNOWNprotocol gets sent. If the address is"local", av2header withLOCALcommand gets sent. Pick your fighter. π§
π EXAMPLES π
(she's empty, bestie β no examples in here, the examples section is just showing up for moral support π«Ά)
π SEE ALSO π
β AUTHOR β
The Cyrus Team, Nic Bernstein (Onlight)
π COPYRIGHT π
1993β2026, The Cyrus Team
and that's the whole page, bestie!! this was version 3.12.3, dated Jul 15, 2026, and it came to you straight from the Cyrus IMAP squad. periodt. πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: cyrus-clients 3.12.3-3build1 Β· CMU
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms