MAILTEST(1)
π MAILTEST(1) π
okay so bestie, sit DOWN, because we're talking about mailtest today and she's honestly kind of iconic for what she is. she's a little diagnostic gremlin that pokes at SMTP servers and tells you what's up. no cap. let's get into it π©·
β¨ NAME β¨
mailtest β Simple SMTP sending for diagnostics.
periodt, that's the whole name section, she's lowkey humble.
πΈ SYNOPSIS πΈ
mailtest --host host.example.com --rcptto recipient@example.com [
send_options ... ] [ additional recipients ...]
Options:
--help brief help message
--debug enable debugging
--host host host to connect to
--rcptto recipient recipient for message
--helo machine machine name for EHLO
--vrfy request VRFY of recipient
--expn request EXPN of recipient
--mailfrom from use as MAIL FROM value
--from822 from content From:
--port port port to connect to
--body generate body
--include_options include Options in body
--include_headers include generated headers in body
--tls perform TLS on connect
--nostarttls do no attempt STARTTLS
--stricttls Enable strict verification on TLS connection
--tlsargs arg=value[,arg=value]
Explicitly define TLS options.
--bounce sending as bounce (<>)
--wellknown path well-known path
--output file Output file to receive well-known data
like, yes, that's a lot of flags, but she's a diagnostic tool, she's ALLOWED to be extra π
π OPTIONS π
here's every single one of them, no skipping, bestie, I would never do that to you π«Ά
--helpβ Prints a brief help message and exits. short, sweet, does what it says on the tin.-d,--debugβ Enables debugging, outputs additional information whilst processing requests. so when things are being weird you turn this on and she starts yapping about what she's doing. obsessed.-h,--host=hostβ Specifies the host to connect to. Must be specified and must be IP-resolvable. like bestie, you cannot skip this one, it's not optional, it will simply not work. mandatory π-m,--ehlo=machineβ Specifies the machine name to use as the EHLO value. Defaults to the fully-qualified name of the host running the command. so if you don't say anything, she's just gonna announce herself as whoever's machine she's running on. main character behaviour, honestly.-r,--rcptto=recipientβ Specifies the recipient of message. This is used as the RCPT TO value. it's giving "who am I sending this to" energy.-v,--vrfyβ Uses the recipient parameter for the value in a VRFY request. This disables the sending of an email. so she just asks "does this person exist?" and dips. no email leaves the building. π¦-e,--expnβ Uses the recipient parameter for the value in an EXPN request. This disables the sending of an email. same vibe as-v, different question.-f,--mailfrom=from_addressβ Specifies the value to use in theMAIL FROMcommand. Defaults to the current username at the FQDN of the machine-munless the-Boption is used.-u,--from822=from_userβ Specifies the value to use in the message headers. Defaults to the-ffrom_addressvalue unless the-Boption is used.-B,--bounceβ Replace the--mailfromfrom_addresswith<>and the--from833from_userwithmailer-daemon@host, where the host is the value of--ehlomachine. (yes the page really writes--from833there, I'm just relaying the gossip, not my typo, not my problem π)-p,--port=portβ Specifies the port to connect to on the specified host. Defaults to port25unless-Sis given, in which case it defaults to465.-S,--tlsβ Specifies that TLS be used directly on the connection prior to any SMTP commands. Changes the connection port to465unless it has been explicitly provided. Disables any attempts at STARTTLS. straight to TLS, no small talk. π₯-s,--nostarttlsβ Disables attempting STARTTLS if offered. Disabled by use of-S. so if the server offers to upgrade and you're like "no thank u", this is the flag.--stricttlsβ Enables strict verification of the TLS connection. Sets the underlying SSL optionSSL_verify_modeto1/SSL_VERIFY_PEERrather than0/SSL_VERIFY_NONE. Since the aim of this tool is to test the SMTP protocol behaviour and not the TLS behaviour, the decision was made to default theSSL_verify_modeto0/SSL_VERIFY_NONE. so yeah β by default she is NOT checking certs, because she's here for SMTP drama, not TLS drama. if you want the strict version, ask for it. β¨--sslargs=argname=argvalue[,argname=argvalue...]β Allow full control over underlying SSL options. Overrides--stricttls. See the documentation forIO::Socket::SSLfor further details.
like so:
--sslargs SSL_verifycn_name=certname.example.com
(heads up bestie, the synopsis up top spells this one --tlsargs and this list spells it --sslargs β the page says both, I'm saying both, that's the whole situation π)
-b,--bodyβ Generate a body for the message being sent. she can write, she contains multitudes.-O,--include-optionsβ Include details of options used in the message body. so the body literally tells you what flags you ran with. self-documenting queen π-H,--include-headersβ Include a copy of the generated headers in the message body. receipts, but in the email itself.-w,--wellknown=well-known-pathβ Provides the path value for aWELLKNOWNcommand.-W,--output=output_fileβ Provides the output file where the WELLKNOWN data should be stored.
π§ DESCRIPTION π§
mailtest is a simple utility for testing SMTP connections. she is designed to debug endpoints and not for full email generation β so like, do not try to run your newsletter through her, that's not the assignment bestie. π
It support a number of basic operations, SEND, VRFY, EXPN, WELLKNOWN. four little moves, and she does them well.
π COMPATIBILITY π
"mailtest" only requires modules that should be in all normal distributions. lowkey the easiest dependency situation you'll ever meet, no cap. π
π AUTHOR π
Bernard Quatermass <bernardq@exim.org>
we love a credited author, respect the icon.
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2008,2020,2024 by Bernard Quatermass.
and that's the whole page, bestie!! go forth and VRFY responsibly π
this page came to you from perl v5.42.3, dated 2026-09-08, and it lives in section MAILTEST(1) β stay slaying, drink water, and don't forget your mandatory --host π«Άπ
π¦ where this page comes from
- ubuntu stonking: exim4-base 4.99.4-1ubuntu5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms