Current File : //var/qmail/man/cat8/qmail-inject.0


Maintenance Procedures                            qmail-inject(8)



NNNNAAAAMMMMEEEE
     qmail-inject - preprocess and send a mail message

SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
     qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt [ -nnnnNNNNaaaaAAAAhhhhHHHH ] [ -ffff_s_e_n_d_e_r ] [ _r_e_c_i_p ... ]

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
     qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt reads a mail message from its  standard  input,
     adds  appropriate  information  to  the  message header, and
     invokes qqqqmmmmaaaaiiiillll----qqqquuuueeeeuuuueeee to send the message to one or more reci-
     pients.

     See qqqqmmmmaaaaiiiillll----hhhheeeeaaaaddddeeeerrrr((((5555))))  for  information  on  how  qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt
     rewrites header fields.

     qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt normally exits 0.   It  exits  100  if  it  was
     invoked  improperly  or if there is a severe syntax error in
     the message.  It exits 111 for temporary errors.

EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
     For the convenience of users who  do  not  run  qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt
     directly,  qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt  takes many options through environ-
     ment variables.

     The user name in the FFFFrrrroooommmm header field is set by  QQQQMMMMAAAAIIIILLLLUUUUSSSSEEEERRRR,
     MMMMAAAAIIIILLLLUUUUSSSSEEEERRRR, UUUUSSSSEEEERRRR, or LLLLOOOOGGGGNNNNAAAAMMMMEEEE, whichever comes first.

     The host name is normally set by the _d_e_f_a_u_l_t_h_o_s_t control but
     can be overridden with QQQQMMMMAAAAIIIILLLLHHHHOOOOSSSSTTTT or MMMMAAAAIIIILLLLHHHHOOOOSSSSTTTT.

     The personal name is QQQQMMMMAAAAIIIILLLLNNNNAAAAMMMMEEEE, MMMMAAAAIIIILLLLNNNNAAAAMMMMEEEE, or NNNNAAAAMMMMEEEE.

     The default envelope sender  address  is  the  same  as  the
     default   FFFFrrrroooommmm  address,  but  it  can  be  overridden  with
     QQQQMMMMAAAAIIIILLLLSSSSUUUUSSSSEEEERRRR and QQQQMMMMAAAAIIIILLLLSSSSHHHHOOOOSSSSTTTT.  It may also be modified by the rrrr
     and mmmm letters described below.  Bounces will be sent to this
     address.

     If QQQQMMMMAAAAIIIILLLLMMMMFFFFTTTTFFFFIIIILLLLEEEE is set, qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt reads a list of mailing
     list  addresses,  one  per  line,  from that file.  If To+Cc
     includes one of those addresses (without  regard  to  case),
     qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt  adds  a  Mail-Followup-To  field  with all the
     To+Cc addresses.  qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt does not add Mail-Followup-To
     to a message that already has one.

     The QQQQMMMMAAAAIIIILLLLIIIINNNNJJJJEEEECCCCTTTT environment variable can contain any of  the
     following letters:

     cccc    Use address-comment style for the FFFFrrrroooommmm field.  Normally
          qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt uses name-address style.

     ssss    Do  not  look  at  any  incoming   RRRReeeettttuuuurrrrnnnn----PPPPaaaatttthhhh   field.



SunOS 5.11                Last change:                          1






Maintenance Procedures                            qmail-inject(8)



          Normally,  if  RRRReeeettttuuuurrrrnnnn----PPPPaaaatttthhhh  is  supplied,  it  sets the
          envelope sender  address,  overriding  all  environment
          variables.  RRRReeeettttuuuurrrrnnnn----PPPPaaaatttthhhh is deleted in any case.

     ffff    Delete any incoming FFFFrrrroooommmm field.  Normally, if  FFFFrrrroooommmm  is
          supplied,  it overrides the usual FFFFrrrroooommmm field created by
          qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt.

     iiii    Delete any incoming  MMMMeeeessssssssaaaaggggeeee----IIIIDDDD  field.   Normally,  if
          MMMMeeeessssssssaaaaggggeeee----IIIIDDDD   is   supplied,   it  overrides  the  usual
          MMMMeeeessssssssaaaaggggeeee----IIIIDDDD field created by qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt.

     rrrr    Use a per-recipient  VERP.   qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt  will  append
          each  recipient  address  to the envelope sender of the
          copy going to that recipient.

     mmmm    Use a per-message VERP.  qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt will  append  the
          current date and process ID to the envelope sender.

OOOOPPPPTTTTIIIIOOOONNNNSSSS
     -aaaa   Send the message to all addresses given as _r_e_c_i_p  argu-
          ments; do not use header recipient addresses.

     -hhhh   Send the message to  all  header  recipient  addresses.
          For  non-forwarded  messages,  this means the addresses
          listed under TTTToooo, CCCCcccc, BBBBcccccccc, AAAAppppppppaaaarrrreeeennnnttttllllyyyy----TTTToooo.  For forwarded
          messages,   this   means  the  addresses  listed  under
          RRRReeeesssseeeennnntttt----TTTToooo, RRRReeeesssseeeennnntttt----CCCCcccc, RRRReeeesssseeeennnntttt----BBBBcccccccc.  Do not use any _r_e_c_i_p
          arguments.

     -AAAA   (Default.)  Send the message to all addresses given  as
          _r_e_c_i_p  arguments.   If no _r_e_c_i_p arguments are supplied,
          send the message to all header recipient addresses.

     -HHHH   Send the message to all header recipient addresses, and
          to all addresses given as _r_e_c_i_p arguments.

     -ffff_s_e_n_d_e_r
          Pass _s_e_n_d_e_r  to  qqqqmmmmaaaaiiiillll----qqqquuuueeeeuuuueeee  as  the  envelope  sender
          address.   This  overrides RRRReeeettttuuuurrrrnnnn----PPPPaaaatttthhhh and all environ-
          ment variables.

     -NNNN   (Default.)  Feed the resulting message to qqqqmmmmaaaaiiiillll----qqqquuuueeeeuuuueeee.

     -nnnn   Print the message rather  than  feeding  it  to  qqqqmmmmaaaaiiiillll----
          qqqquuuueeeeuuuueeee.

CCCCOOOONNNNTTTTRRRROOOOLLLL FFFFIIIILLLLEEEESSSS
     _d_e_f_a_u_l_t_d_o_m_a_i_n
          Default domain name.  Default:  _m_e,  if  that  is  sup-
          plied;  otherwise the literal name ddddeeeeffffaaaauuuullllttttddddoooommmmaaaaiiiinnnn, which
          is probably not what you want.  qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt adds  this



SunOS 5.11                Last change:                          2






Maintenance Procedures                            qmail-inject(8)



          name   to   any   host  name  without  dots,  including
          _d_e_f_a_u_l_t_h_o_s_t if _d_e_f_a_u_l_t_h_o_s_t does not have dots.  (Excep-
          tion: see _p_l_u_s_d_o_m_a_i_n.)

          The QQQQMMMMAAAAIIIILLLLDDDDEEEEFFFFAAAAUUUULLLLTTTTDDDDOOOOMMMMAAAAIIIINNNN environment  variable  overrides
          _d_e_f_a_u_l_t_d_o_m_a_i_n.

     _d_e_f_a_u_l_t_h_o_s_t
          Default host name.  Default:  _m_e, if that is  supplied;
          otherwise  the literal name ddddeeeeffffaaaauuuulllltttthhhhoooosssstttt, which is prob-
          ably not what you want.  qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt adds this name to
          any  address without a host name.  _d_e_f_a_u_l_t_h_o_s_t need not
          be the current  host's  name.   For  example,  you  may
          prefer that outgoing mail show just your domain name.

          The  QQQQMMMMAAAAIIIILLLLDDDDEEEEFFFFAAAAUUUULLLLTTTTHHHHOOOOSSSSTTTT  environment  variable  overrides
          _d_e_f_a_u_l_t_h_o_s_t.

     _i_d_h_o_s_t
          Host name for Message-IDs.  Default:  _m_e,  if  that  is
          supplied;  otherwise  the literal name iiiiddddhhhhoooosssstttt, which is
          certainly not what you want.  _i_d_h_o_s_t need  not  be  the
          current  host's  name.   For example, you may prefer to
          use fake host names in  Message-IDs.   However,  _i_d_h_o_s_t
          must  be a fully-qualified name within your domain, and
          each host in your domain should use a different _i_d_h_o_s_t.

          The QQQQMMMMAAAAIIIILLLLIIIIDDDDHHHHOOOOSSSSTTTT environment variable overrides _i_d_h_o_s_t.

     _p_l_u_s_d_o_m_a_i_n
          Plus domain name.  Default:  _m_e, if that  is  supplied;
          otherwise  the  literal name pppplllluuuussssddddoooommmmaaaaiiiinnnn, which is prob-
          ably not what you want.  qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt adds this name to
          any  host  name  that  ends with a plus sign, including
          _d_e_f_a_u_l_t_h_o_s_t if _d_e_f_a_u_l_t_h_o_s_t ends with a plus sign.  If a
          host name does not have dots but ends with a plus sign,
          qqqqmmmmaaaaiiiillll----iiiinnnnjjjjeeeecccctttt uses _p_l_u_s_d_o_m_a_i_n, not _d_e_f_a_u_l_t_d_o_m_a_i_n.

          The  QQQQMMMMAAAAIIIILLLLPPPPLLLLUUUUSSSSDDDDOOOOMMMMAAAAIIIINNNN  environment  variable   overrides
          _p_l_u_s_d_o_m_a_i_n.

SSSSEEEEEEEE AAAALLLLSSSSOOOO
     addresses(5),  qmail-control(5),   qmail-header(5),   qmail-
     queue(8)











SunOS 5.11                Last change:                          3