checkapoppw(8)
π checkapoppw β the vibe check for your APOP password π
okay bestie, so this is a page from the System Manager's Manual, section 8 (checkapoppw(8)), and it's literally the little gremlin that peeks at your APOP password before letting anybody in. it checks that password against the file ~/Maildir/.password. that's it, that's the whole job. she's small but she's iconic. π
β¨ NAME β¨
checkapoppw β checks the APOP password against the file ~/Maildir/.password
π¦ SYNOPSIS π¦
checkapoppw prog
πΈ DESCRIPTION πΈ
okay so here's what she does. checkapoppw reads descriptor 3 all the way through end of file, and then β slay β she closes descriptor 3. and bestie, listen: there must be at most 512 bytes of data before end of file. no cap. don't be sending her a novel, she has boundaries. π
the info that shows up on descriptor 3 is, in order:
- a login name terminated by
\0 - a password terminated by
\0 - a timestamp terminated by
\0 - and possibly more data after that, whatever, she doesn't care
and there are no other restrictions on the form of the login name, the password, or the timestamp. like, none. zero. be free. π
now the β¨verdictsβ¨:
- If the password is unacceptable,
checkapoppwexits1. π« - If
checkapoppwis misused, it may instead exit2. π - If there's a temporary problem checking the password,
checkapoppwexits111. π
and if the password is acceptable? she runs prog. main character energy, truly. π
prog consists of one or more arguments. that's it. that's the deal.
π₯ Compatible tools π₯
there are other tools out there that offer the exact same interface as checkapoppw. same girlypop API, different name. π
heads up bestie: these tools do not follow the getopt interface. none of that. optional features are controlled through (1) the tool name and (2) environment variables. iykyk. β¨
π The password database π
checkapoppw checks the APOP password against the content of the file Maildir/.password β and note, it is not encrypted β in the user's home directory corresponding to the login name. π
Maildir may be overridden through the environment variable $MAILDIR. cute little escape hatch, love that for us. π§
π«Ά Process-state changes π«Ά
before invoking prog, checkapoppw sets up:
$USER$HOME$SHELL- its supplementary groups
- its gid
- its uid
- its working directory
she gets prog all dressed up and ready before the door even opens. periodt. π
π FILES π
~/Maildir/.password
β SEE ALSO β
checkpw(8)qmail-popup(8)qmail-pop3d(8)
π AUTHOR π
This manual page was written by Gerrit Pape <pape@smarden.org>, for the Debian GNU/Linux system.
and that's the whole page bestie, no crumbs left π it came to you straight out of the System Manager's Manual, filed under checkapoppw(8) β mwah, go forth and check those passwords πβ¨
π¦ where this page comes from
- debian bookworm: checkpw 1.02-3 Β· LicenseRef-public-domain
- debian trixie: checkpw 1.02-5 Β· LicenseRef-public-domain
- ubuntu jammy: checkpw 1.02-1.1build1
- ubuntu noble: checkpw 1.02-3 Β· LicenseRef-public-domain
- ubuntu questing: checkpw 1.02-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms