LMTPTEST(1)
π LMTPTEST π
okay so real talk bestie, this one's from the Cyrus IMAP manual fam, and it is literally the same program as imtest(1) β no cap. lmtptest is actually installed as a hard link to imtest(1). π«Ά
It's an interactive LMTP test program. 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 πΈ
okay so imtest is that utility that lets you authenticate to an IMAP server and then just. talk to it. interactively. type commands at it like it's a group chat and it's the friend who actually replies. π
Once you're authenticated you can issue any IMAP command by simply typing it in. That's it. That's the whole thing. It's capable of multiple SASL authentication mechanisms and it handles encryption layers transparently, which is lowkey iconic of it.
People use this thing all the time for testing whether an IMAP server is behaving, and honestly? if you're developing an IMAP client, this is your new bestie. π¦
π OPTIONS π
-t keyfile,--keyfile=keyfileβ Enable TLS.keyfilecontains the TLS public and private keys. If you specify""it'll negotiate a TLS encryption layer but not use TLS authentication. fancy β¨-p port,--port=portβ Port to connect to. Leave it off and it defaults toimapas defined in/etc/services.-m mechanism,--mechanism=mechanismβ Forceimtestto usemechanismfor authentication. If you don't specify one, the strongest authentication mechanism the server supports gets chosen (main character energy tbh π). 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 get presented to the server for verification.-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 one is only used with SASL mechanisms that allow proxying (e.g. PLAIN). iykyk π
-k num,--minssf=numβ Minimum protection layer required.-l num,--maxssf=numβ Maximum protection layer to use (0=none;1=integrity; etc). Like, for example, if you're using theGSSAPIauthentication mechanism, specifying0will forceimtestto not use any layer at all, and specifying1will force it to use the integrity layer. By default the maximum supported protection layer gets used. π-r realm,--realm=realmβ Specify the realm to use. Certain authentication mechanisms may require you to specify a realm, so don't come crying to me if it yells at you. π-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 IMAP COMPRESSion (after authentication).-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). she's doing the math for you bestie π§-i,--no-initial-responseβ Don't send an initial client response for SASL mechanisms, even if the protocol supports it.-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. not me reading every single line π-z,--run-stress-testβ Timing test.-x file,--output-socket=fileβ Open the named socket for the interactive portion.-X fileβ Like-x, only close all file descriptors & daemonize the process. π-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. β
π₯ EXAMPLES π₯
bestie. there are literally no examples here. it's giving blank page. π go read imtest(1), she ate.
π SEE ALSO π
π AUTHOR π
The Cyrus Team, Nic Bernstein (Onlight)
π COPYRIGHT π
1993β2026, The Cyrus Team
okay that's the whole page, mwah π this was Cyrus IMAP version 3.12.4, dated Sep 09, 2026, and it's called LMTPTEST(1) β slay, periodt. πβ¨π
π¦ 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