PRELINE(1)
π PRELINE(1) β aka the glow-up your mbox headers deserve π
okay bestie, so this is preline, and it lives in section 1 of the manual, and it was written by S. Varshavchik. and it is, no exaggeration, the little wrapper that keeps your local mail delivery from going absolutely feral. let's get into it π¦
β¨ NAME β¨
preline β prepend legacy mbox headers. that's it. that's the whole job. and she eats every single time π
πΈ SYNOPSIS πΈ
/usr/bin/preline {program} [arg...]
π DESCRIPTION π
okay so here's the tea. preline is a wrapper for program. she's usually invoked from $HOME/.courier. what she does is run program, along with any extra arguments you handed her on the command line. π«Ά
then program gets the message that's being delivered β but with some additional headers sprinkled on top. and where do those extra headers come from? not from thin air, bestie. they come from the UFLINE, DTLINE, and RPLINE environment variables. π
those environment variables get initialized by courierdeliver, which reads and executes commands from $HOME/.courier. and the variables hold the additional headers that should be added to every message delivered to a local mailbox. every. single. one. no skipping. β
π real talk moment: you must useprelineif program β the thing being executed from$HOME/.courierto deliver mail β does not recognize these environment variables.
so what's actually inside them?
UFLINEcontains theFrom_line πDTLINEcontains theDelivered-To:header πRPLINEcontains theReturn-Path:header π¦
and if those headers aren't present in the message that program reads? oh honey. you may end up with excessive resources being consumed by mail loops, or by malfunctioning software that expects to see From_ lines in all messages scheduled for local delivery (like procmail). excessive resources, bestie. that's the villain origin story. not today. π
π₯ EXAMPLE π₯
| /usr/bin/preline /usr/bin/procmail
this is the normal way to arrange for procmail to handle local mail delivery. iconic. periodt. β¨
π SEE ALSO π
courierpop3d(8)couriertcpd(8)authlib(7)
π AUTHOR π
Sam Varshavchik β Author
π NOTES π
courierpop3d(8)β https://www.courier-mta.org/courierpop3d.htmlcouriertcpd(8)β https://www.courier-mta.org/couriertcpd.htmlauthlib(7)β https://www.courier-mta.org/authlib/authlib.html
and that's the whole page, bestie π₯Ή this lil slice of documentation is from the Courier Mail Server, dated 01/10/2026, and it's filed under PRELINE(1). go prepend those headers, you absolute main character ππ
π¦ where this page comes from
- ubuntu stonking: courier-mta 2.0.6-1 Β· GPL-3+~with-OpenSSL-exception
- Copyright 1998 - 2007 S. Varshavchik. See COPYING for -->
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms