<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Changing a sender's address in sendmail in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773391#M783350</link>
    <description>We have internal HPUX servers that send emails to an exchange mail relay server. From there, emails are either routed locally or outside of our domain. The servers do not run sendmail as a daemon (ie., are not setup to receive email). I use the "masquerade" to change the domain to a valid external domain. Now I need to change the sender's address to a valid one. I've read up on the genericstable and it seems the solution lays there, but I don't want to create and maintain a "valid" sender email address for each userid on all the servers. Is there a method to map certain accounts which I know send external emails, and have all other userids map to a single generic, valid exchange email address ?&lt;BR /&gt;Thanks</description>
    <pubDate>Tue, 18 Apr 2006 11:25:54 GMT</pubDate>
    <dc:creator>Luis Toro</dc:creator>
    <dc:date>2006-04-18T11:25:54Z</dc:date>
    <item>
      <title>Changing a sender's address in sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773391#M783350</link>
      <description>We have internal HPUX servers that send emails to an exchange mail relay server. From there, emails are either routed locally or outside of our domain. The servers do not run sendmail as a daemon (ie., are not setup to receive email). I use the "masquerade" to change the domain to a valid external domain. Now I need to change the sender's address to a valid one. I've read up on the genericstable and it seems the solution lays there, but I don't want to create and maintain a "valid" sender email address for each userid on all the servers. Is there a method to map certain accounts which I know send external emails, and have all other userids map to a single generic, valid exchange email address ?&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 18 Apr 2006 11:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773391#M783350</guid>
      <dc:creator>Luis Toro</dc:creator>
      <dc:date>2006-04-18T11:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a sender's address in sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773392#M783351</link>
      <description>one crude way of doing this is to add a line like this to the beginning of your file that you are sending out, followed by an empty line&lt;BR /&gt;&lt;BR /&gt;From: "Name Lastname" &lt;SENDER&gt;&lt;BR /&gt;&lt;BR /&gt;my text starts at this line. The line above this is intentionally left blank.&lt;BR /&gt;blah&lt;BR /&gt;blah&lt;BR /&gt;...&lt;BR /&gt;and more blah&lt;BR /&gt;&lt;BR /&gt;HTH&lt;/SENDER&gt;</description>
      <pubDate>Tue, 18 Apr 2006 11:30:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773392#M783351</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2006-04-18T11:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a sender's address in sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773393#M783352</link>
      <description>I had a similar question several months ago and here was the thread with those answers:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=685447" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=685447&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Apr 2006 11:34:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773393#M783352</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2006-04-18T11:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a sender's address in sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773394#M783353</link>
      <description>Thanks for the replies, but I would need to do this at the server level, not at the user or command level (as in using "mailx -r"). All of the outbound emails are automatically generated from scripts, or application utilities, and it would be a major endeavor to get the application folks to change their scripts/programs.</description>
      <pubDate>Tue, 18 Apr 2006 11:45:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773394#M783353</guid>
      <dc:creator>Luis Toro</dc:creator>
      <dc:date>2006-04-18T11:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a sender's address in sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773395#M783354</link>
      <description>Here's what we do for root:&lt;BR /&gt;&lt;BR /&gt;add the following as the first line of rule 93 so e-mail from root appears to come from the UnixTeam mailbox&lt;BR /&gt;Rroot &amp;lt; @ $* &amp;gt; $*     UnixTeam &amp;lt; @ $1 &amp;gt; $2          Special case for root&lt;BR /&gt;&lt;BR /&gt;Watch out for tabs. Sendmail's rewrite rules are broken into fields by tab characters. Make sure the white space before UnixTeam is a tab, and put 2 tabs before Special.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 18 Apr 2006 14:06:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773395#M783354</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-04-18T14:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a sender's address in sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773396#M783355</link>
      <description>Geoff,&lt;BR /&gt;Can I put something like unixteam@domain.com in place of UnixTeam ? I've also been trying to configure the generics table and I can't get it to work. I've made the following changes to sendmail.cf:&lt;BR /&gt;- uncommented all lines for genericstable&lt;BR /&gt;- DMmydomain.com&lt;BR /&gt;- DSmailrelayhost.mydomain.com&lt;BR /&gt;- C{G}mydomain.com&lt;BR /&gt;&lt;BR /&gt;in the genericstable file, I have the following:&lt;BR /&gt;myunixid   myexchangeid@mydomain.com&lt;BR /&gt;myunixid@mydomain  myexchangeid@mydomain.com&lt;BR /&gt;myunixid@servername.mydomain.com myexchangeid@mydomain.com&lt;BR /&gt;&lt;BR /&gt;I then did the makemap dbm command to create the genericstable.db file.</description>
      <pubDate>Tue, 18 Apr 2006 15:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773396#M783355</guid>
      <dc:creator>Luis Toro</dc:creator>
      <dc:date>2006-04-18T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a sender's address in sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773397#M783356</link>
      <description>Might be possible - but if you are already masquerading (DM macro) then you don't need to.&lt;BR /&gt;&lt;BR /&gt;At our site UnixTeam is a real Exchange user.&lt;BR /&gt;&lt;BR /&gt;If someone was to reply to the email from that server - it would go to a "shared" mail box on the Exchange server that 9 of us admins have access to.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 18 Apr 2006 15:37:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773397#M783356</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-04-18T15:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a sender's address in sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773398#M783357</link>
      <description>I wouldn't fool much with the masquerade stuff; the genericstable will take care of "masquerading the domain" for you.&lt;BR /&gt;&lt;BR /&gt;External well configured sendmail instances will check that the domain part of the from address is valid.  You can also run checks against the relay.&lt;BR /&gt;&lt;BR /&gt;Use the generics table to change the from address of a given Unix account to a _valid_ e-mail address where the domain part of the from address is valid - it doesn't matter if that host (MX) is different than where you are right now.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Uncomment the following lines in sendmail.cf.&lt;BR /&gt;Build the genericstable - filenames matter.&lt;BR /&gt;Restart sendmail.&lt;BR /&gt;Test.&lt;BR /&gt;&lt;BR /&gt;#Kgenerics dbm /etc/mail/genericstable&lt;BR /&gt;&lt;BR /&gt;#R&amp;lt; $+ &amp;gt; $+ &amp;lt; $* &amp;gt; @    $: &amp;lt; $(generics $1 $: $) &amp;gt; $2 &amp;lt; $3 &amp;gt;&lt;BR /&gt;#R&amp;lt; &amp;gt; $+ &amp;lt; @ $+ &amp;gt;       $: &amp;lt; $(generics $1 $: $) &amp;gt; $1 &amp;lt; @ $2 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;If the testing doesn't work, give us some more debug:&lt;BR /&gt;&lt;BR /&gt;1) Use the following debug commands to locate the problem: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1a) check if sendmail "sees" a genericstable entry: &lt;BR /&gt;echo "/map generics u...@mycomputer.myuniveristy.com" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1b) check processing of the addresses &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sendmail -d60.1 -d21.12 -bt &amp;lt;&lt;END&gt;&lt;/END&gt;/tryflags hs &lt;BR /&gt;/try esmtp u...@domain.com &lt;BR /&gt;END &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Replace u...@domain.com with address of "unmasqueraded" users. &lt;BR /&gt;-d60.1  - trace maps lookups &lt;BR /&gt;-d21.12 - trace sendmail.cf R lines processing &lt;BR /&gt;/tryflags hs - make /try check header sender &lt;BR /&gt;                (*h*eader/*e*nvelope *s*ender/*r*ecipient) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Apr 2006 17:59:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773398#M783357</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2006-04-18T17:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a sender's address in sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773399#M783358</link>
      <description>Thanks for the details Chris.&lt;BR /&gt;I assigned this to another SA, and she got it to work by using the userdb table to basically map a UNIX account to a valid domain email address. What's the difference then between the genericstable and userdb ?&lt;BR /&gt;BTW: we are not running sendmail as a process (ie., it does not listen for incoming email).</description>
      <pubDate>Thu, 20 Apr 2006 08:51:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773399#M783358</guid>
      <dc:creator>Luis Toro</dc:creator>
      <dc:date>2006-04-20T08:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a sender's address in sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773400#M783359</link>
      <description>assigned this to another SA, and she got it to work by using the userdb table to basically map a UNIX account to a valid domain email address. What's the difference then between the genericstable and userdb ?&lt;BR /&gt;BTW: we are not running sendmail as a process (ie., it does not listen for incoming email).&lt;BR /&gt;&lt;BR /&gt;The user database alllows sender and recipient addresses to be re-written under the control of an external database.  &lt;BR /&gt;&lt;BR /&gt;Names are looked up in the user database after aliasing but before forwarding.&lt;BR /&gt;&lt;BR /&gt;The user database is a bit more complicated than the generics database, which is used to re-write just the sender's address.&lt;BR /&gt;&lt;BR /&gt;Here's the usage information for generics out of the sendmail release notes:&lt;BR /&gt;&lt;BR /&gt;genericstable- to do a more general rewriting of outgoing addresses.  Defaults to ``hash -o /etc/genericstable''.  Keys are user names; values are outgoing mail addresses.  Yes, this does overlap with the user database, and figuring out just when to use which one may be tricky.  &lt;BR /&gt;&lt;BR /&gt;I'd guess that the thinking is if you're already using userdb to rewrite recipient addresses, why not use it to rewrite sender addresses.  If you're not using anything, or if you just want to rewrite sender addresses, use the genericstable.&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Apr 2006 15:26:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-sender-s-address-in-sendmail/m-p/3773400#M783359</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2006-04-21T15:26:58Z</dc:date>
    </item>
  </channel>
</rss>

