tlswrapper-smtp(1)
π tlswrapper-smtp β TLS encryption wrapper: smtp helper π
okay bestie, gather round, because this is tlswrapper-smtp(1), a General Commands Manual page and honestly? it's giving tiny but mighty. πΈ
β¨ NAME β¨
tlswrapper-smtp β TLS encryption wrapper, but make it the smtp helper π
π¦ SYNOPSIS π¦
tlswrapper-smtp [ options ] prog
π DESCRIPTION π
so here's the tea: tlswrapper-smtp adds STARTTLS support to those old, crusty, inetd-style SMTP servers that lowkey refuse to support STARTTLS natively. no patching required, we just wrap it. π
and the way it gets executed is literally this whole relay chain:
Internet <--> systemd.socket/inetd/tcpserver/... <--> tlswrapper <-->
tlswrapper-smtp <--> smtpprogram
main character energy in the middle of the pipeline, periodt. π₯
π OPTIONS π
-qβ quiet mode, bestie. absolutely no error messages. π€«-vβ verbose mode unlocked! stack multiple-voptions to crank the verbosity up higher. the max is 3, so don't get greedy. π-tseconds β sets the SMTP session timeout to seconds seconds. default is600. β°-Tseconds β sets the connect/read/write timeout to seconds seconds. default is15. β‘-uuser β runs programprogunder a specified user's uid and gid. heads up though: the account must resolve to a non-zero uid and a non-zero gid, and accounts with uid0or gid0are rejected. no root shenanigans here, babes. π«-ghost:port β turns on greylist support (postgrey protocol) and uses the server running on host:port. π-cβ handles communication to the greylist server in fail-closed mode. if a greylist lookup fails temporarily,tlswrapper-smtpexits with status111. dramatic but honest. π-Cβ handles communication to the greylist server in fail-open mode. if a greylist lookup fails temporarily, it assumes the address is not greylisted. this one is the default, iykyk. π-Jjaildir β chroots into the specified jaildir. default:/var/lib/tlswrapper/empty. π§-jjailuser β runs under the specified jailuser's uid and gid. same rules as before: the account must resolve to non-zero uid and non-zero gid, and uid0/ gid0accounts are rejected. leave it unset and it runs under a random uid and gid instead. π²progβ program. yes that's the whole description bestie, that's the argument. π«Ά
π SECURITY π
JAIL β Privilege separation, filesystem isolation, limits π°
tlswrapper-smtp, just like tlswrapper processes, runs under a dedicated non-zero uid to prohibit kill, ptrace, etc. like, don't even think about touching it. πͺ
it also gets chrooted into an empty, unwritable directory to prohibit filesystem access β nothing to see, nothing to touch, iconic. π
and it sets ulimits to prohibit new files, sockets, etc. πΈ
it also sets ulimits to prohibit forks. π΄π«
fr fr, this thing is locked down tighter than your read receipts. π
π EXAMPLES π
run QMAIL qmail-smtpd on port 25 with STARTTLS enabled (without patching QMAIL, because we said no patching):
exec softlimit -m 64000000 -f 100000000 \
tcpserver -HRDl0 0 25 \
tlswrapper -v -n -f /etc/ssl/cert.pem \
tlswrapper-smtp -v -u qmaild \
qmail-smtpd
slay. that's the whole flex. π β¨
π«Ά SEE ALSO π«Ά
tlswrapper(1)β go read it, it's the sibling. π
and that's the page babes! π this little icon was brought to you by tlswrapper-smtp(1) β go be safe, stay jailed, and remember: no cap, only STARTTLS. ππ¦π
π¦ where this page comes from
- ubuntu stonking: tlswrapper 0~20260501-3 Β· CC0-1.0 OR 0BSD OR MIT-0 OR MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms