FORWARD(5)
π forward(5) β email forwarding information file π
okay bestie, this page is from the File Formats Manual, and itβs all about that .forward life. no cap, itβs giving βset it and let smtpd handle the restβ energy. β¨
π NAME π
forwardβ email forwarding information file. literally the manual page for the.forwardfile, and yes itβs iconic. π
πΈ DESCRIPTION πΈ
okay so hereβs the tea: users may put a .forward file in their home directory. If this file exists, smtpd(8) forwards email to the destinations specified therein. smtpd(8) is the main character here, lowkey. π
A .forward file contains a list of expansion values, as described in aliases(5). Each expansion value should be on a line by itself. Expansion is performed under the user ID of the .forward file owner. iykyk β itβs doing the work as that user. π«Ά
Permissions on the .forward file are very strict, and expansion is rejected if:
- the file is group or world-writable;
- the home directory is group writeable;
- or the file is not owned by the user.
π¨ bestie, this is not a drill: those permission checks are strict, periodt. If any of those conditions hit, expansion gets rejected. no vibes pass go. π
Users should avoid editing the .forward file directly, to prevent delivery failures from occurring if a message arrives while the file is not fully written. The best option is to use a temporary file and use the mv(1) command to atomically overwrite the former .forward. Alternatively, setting the sticky(8) bit on the home directory will cause the .forward lookup to return a temporary failure, causing mails to be deferred. slayful little safety dance. π§
ποΈ FILES ποΈ
~/.forwardβ Email forwarding information. literally the file this whole page is about. π
π§ͺ EXAMPLES π§ͺ
The following file forwards mail to user@example.com, and pipes the same mail to examplemda. cute, concise, forwarding. π
# empty lines are ignored
user@example.com # anything after # is ignored
"|/path/to/examplemda"
π SEE ALSO π
β οΈ CAVEATS β οΈ
ngl, one spicy limitation: the pipe|and:include:mechanisms are not allowed for therootuser. thatβs the rule, bestie. π
Debian, September 5, 2024 β and thatβs forward(5), bestie. go forth and forward responsibly. π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: OpenSMTPD 7.9.0p0-bp160.1.1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- opensuse-leap 16.0: OpenSMTPD 7.9.0p0-bp160.1.1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- opensuse-leap 16.0: OpenSMTPD 7.9.0p0-bp160.1.1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- opensuse-leap 16.0: OpenSMTPD 7.9.0p0-bp160.1.1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms