title: UNIX Sendmail Change Sender in Header
body: <p>I need to change the "Received: (from pseudouser@<strong>localhost</strong>)" in the email header to "Received: (from pseudouser@<strong>company.com</strong>).  My domain name has already been set in the sendmail.cf, and I've already set masquerade to "company.com."  Any ideas on what I can do to reach my end goal?</p>
  
  <p><strong>Current Code</strong></p>
  
  <pre><code>cat body.txt | sendmail -s "Request" user@company.com
  </code></pre>
  
  <p><strong>Email Header</strong></p>
  
  <pre><code>Received: (from pseudouser@localhost)    by servername.corp.company.net (@(#)Sendmail
  version 8.13.3 - Revision 1.007 - 3 February 2010/8.11.1) id ####
              for user@company.com; Tue, 23 Jul 2013 14:36:15 -0500 (CDT)
  Date: Tue, 23 Jul 2013 14:36:15 -0500
  From: pseudouser@company.com
  Message-ID: &lt;201307231936.####@servername.corp.company.net&gt;
  To: &lt;user@company.com&gt;
  Subject: Request
  Return-Path: pseudouser@company.com
  </code></pre>
  
  <p><strong>Set Domain To...</strong></p>
  
  <pre><code>$ sendmail -d0.1 -bv root
  
  Version @(#)Sendmail version 8.13.3 - Revision 1.007 - 3 February 2010
  
  ============ SYSTEM IDENTITY (after readcf) ============
        (short domain name) $w = servername
    (canonical domain name) $j = $w.corp.company.net
           (subdomain name) $m = corp.company.net
                (node name) $k = servername
  ========================================================
  </code></pre>