Maintenance Procedures qmail-command(8) NNNNAAAAMMMMEEEE qmail-command - user-specified mail delivery program SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS in ....qqqqmmmmaaaaiiiillll_e_x_t: ||||_c_o_m_m_a_n_d DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN qqqqmmmmaaaaiiiillll----llllooooccccaaaallll will, upon your request, feed each incoming mail message through a program of your choice. When a mail message arrives, qqqqmmmmaaaaiiiillll----llllooooccccaaaallll runs sssshhhh ----cccc _c_o_m_m_a_n_d in your home directory. It makes the message available on _c_o_m_m_a_n_d's standard input. WWWWAAAARRRRNNNNIIIINNNNGGGG:::: The mail message does not begin with qqqqmmmmaaaaiiiillll----llllooooccccaaaallll's usual RRRReeeettttuuuurrrrnnnn----PPPPaaaatttthhhh and DDDDeeeelllliiiivvvveeeerrrreeeedddd----TTTToooo lines. Note that qqqqmmmmaaaaiiiillll----llllooooccccaaaallll uses the same file descriptor for every delivery in your ....qqqqmmmmaaaaiiiillll file, so it is not safe for _c_o_m_m_a_n_d to fork a child that reads the message in the back- ground while the parent exits. EEEEXXXXIIIITTTT CCCCOOOODDDDEEEESSSS _c_o_m_m_a_n_d's exit codes are interpreted as follows: 0 means that the delivery was successful; 99 means that the delivery was successful, but that qqqqmmmmaaaaiiiillll----llllooooccccaaaallll should ignore all further delivery instructions; 100 means that the delivery failed permanently (hard error); 111 means that the delivery failed but should be tried again in a little while (soft error). Currently 64, 65, 70, 76, 77, 78, and 112 are considered hard errors, and all other codes are considered soft errors, but _c_o_m_m_a_n_d should avoid relying on this. EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS qqqqmmmmaaaaiiiillll----llllooooccccaaaallll supplies several useful environment variables to _c_o_m_m_a_n_d. WWWWAAAARRRRNNNNIIIINNNNGGGG:::: These environment variables are not quoted. They may contain special characters. They are under the control of a possibly malicious remote user. SSSSEEEENNNNDDDDEEEERRRR is the envelope sender address. NNNNEEEEWWWWSSSSEEEENNNNDDDDEEEERRRR is the forwarding envelope sender address, as described in ddddooootttt---- qqqqmmmmaaaaiiiillll((((5555)))). RRRREEEECCCCIIIIPPPPIIIIEEEENNNNTTTT is the envelope recipient address, _l_o_c_a_l@_d_o_m_a_i_n. UUUUSSSSEEEERRRR is _u_s_e_r. HHHHOOOOMMMMEEEE is your home directory, _h_o_m_e_d_i_r. HHHHOOOOSSSSTTTT is the _d_o_m_a_i_n part of the recipient address. LLLLOOOOCCCCAAAALLLL is the _l_o_c_a_l part. EEEEXXXXTTTT is the address extension, _e_x_t. HHHHOOOOSSSSTTTT2222 is the portion of HHHHOOOOSSSSTTTT preceding the last dot; HHHHOOOOSSSSTTTT3333 is the portion of HHHHOOOOSSSSTTTT preceding the second-to-last dot; HHHHOOOOSSSSTTTT4444 is the portion of HHHHOOOOSSSSTTTT preceding the third-to-last dot. SunOS 5.11 Last change: 1 Maintenance Procedures qmail-command(8) EEEEXXXXTTTT2222 is the portion of EEEEXXXXTTTT following the first dash; EEEEXXXXTTTT3333 is the portion following the second dash; EEEEXXXXTTTT4444 is the portion following the third dash. DDDDEEEEFFFFAAAAUUUULLLLTTTT is the portion corresponding to the ddddeeeeffffaaaauuuulllltttt part of the ....qqqqmmmmaaaaiiiillll-... file name; DDDDEEEEFFFFAAAAUUUULLLLTTTT is not set if the file name does not end with ddddeeeeffffaaaauuuulllltttt. DDDDTTTTLLLLIIIINNNNEEEE and RRRRPPPPLLLLIIIINNNNEEEE are the usual DDDDeeeelllliiiivvvveeeerrrreeeedddd----TTTToooo and RRRReeeettttuuuurrrrnnnn----PPPPaaaatttthhhh lines, including newlines. UUUUFFFFLLLLIIIINNNNEEEE is the UUCP-style FFFFrrrroooommmm____ line that qqqqmmmmaaaaiiiillll----llllooooccccaaaallll adds to _m_b_o_x-format files. SSSSEEEEEEEE AAAALLLLSSSSOOOO dot-qmail(5), envelopes(5), qmail-local(8) SunOS 5.11 Last change: 2