<?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 sendmail 8.13 masquerade nightmare in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156731#M726545</link>
    <description>I posted a couple days ago about problems confguring sendmail.  Under sendmail 8.9 one change to the sendmail.cf file and the masquerade job was done.  .mc files are supposed to make things better, right?  Wrong.  Here's the problem.&lt;BR /&gt;&lt;BR /&gt;This machine is hpux.domain.com.  The outside world knows nothing of hpux.domain.com and that's the way we want it.  So sender addresses on mail to external addressses must masquerade as "domain.com".  Recipient addresses should be untouched.  For that, I added this to sendmail.mc:&lt;BR /&gt;&lt;BR /&gt;MASQUERADE_AS(`domain.com')dnl&lt;BR /&gt;MASQUERADE_DOMAIN(`hpux.domain.com')dnl&lt;BR /&gt;FEATURE(`masquerade_envelope')dnl&lt;BR /&gt;&lt;BR /&gt;Result:  Mail to an alias that translates to an external address gets the correct sender domain.  Mail sent directly to an external address does NOT have the correct sender domain.&lt;BR /&gt;&lt;BR /&gt;So I added those same three lines to to submit.mc. Result:&lt;BR /&gt;&lt;BR /&gt;Mail sent directly to an external address has the correct sender domain.  Aliases and local delivery is broken - all mail to simple addresses attempts to deliver to "address@domain.com".&lt;BR /&gt;&lt;BR /&gt;I tried this:&lt;BR /&gt;&lt;BR /&gt;FEATURE(`local_no_masquerade')dnl&lt;BR /&gt;&lt;BR /&gt;in both sendmail.mc and submit.mc, but it didn't help.  It's as if the `allmasquerade' feature was turned on - but it's not.  And there's no directive to turn it off that I can add to submit.mc.&lt;BR /&gt;&lt;BR /&gt;My hope was to make changes only to the .mc files.  If I have to go tweak the resulting .cf file, then I might as well not bother with .mc at all and go attack the learning curve for changing .cf files.&lt;BR /&gt;&lt;BR /&gt;I'm reading the .mc documentation at sendmail.org but so far haven't found the magic bullet for this.  Anyone?</description>
    <pubDate>Thu, 06 Mar 2008 17:24:40 GMT</pubDate>
    <dc:creator>Carl Houseman</dc:creator>
    <dc:date>2008-03-06T17:24:40Z</dc:date>
    <item>
      <title>sendmail 8.13 masquerade nightmare</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156731#M726545</link>
      <description>I posted a couple days ago about problems confguring sendmail.  Under sendmail 8.9 one change to the sendmail.cf file and the masquerade job was done.  .mc files are supposed to make things better, right?  Wrong.  Here's the problem.&lt;BR /&gt;&lt;BR /&gt;This machine is hpux.domain.com.  The outside world knows nothing of hpux.domain.com and that's the way we want it.  So sender addresses on mail to external addressses must masquerade as "domain.com".  Recipient addresses should be untouched.  For that, I added this to sendmail.mc:&lt;BR /&gt;&lt;BR /&gt;MASQUERADE_AS(`domain.com')dnl&lt;BR /&gt;MASQUERADE_DOMAIN(`hpux.domain.com')dnl&lt;BR /&gt;FEATURE(`masquerade_envelope')dnl&lt;BR /&gt;&lt;BR /&gt;Result:  Mail to an alias that translates to an external address gets the correct sender domain.  Mail sent directly to an external address does NOT have the correct sender domain.&lt;BR /&gt;&lt;BR /&gt;So I added those same three lines to to submit.mc. Result:&lt;BR /&gt;&lt;BR /&gt;Mail sent directly to an external address has the correct sender domain.  Aliases and local delivery is broken - all mail to simple addresses attempts to deliver to "address@domain.com".&lt;BR /&gt;&lt;BR /&gt;I tried this:&lt;BR /&gt;&lt;BR /&gt;FEATURE(`local_no_masquerade')dnl&lt;BR /&gt;&lt;BR /&gt;in both sendmail.mc and submit.mc, but it didn't help.  It's as if the `allmasquerade' feature was turned on - but it's not.  And there's no directive to turn it off that I can add to submit.mc.&lt;BR /&gt;&lt;BR /&gt;My hope was to make changes only to the .mc files.  If I have to go tweak the resulting .cf file, then I might as well not bother with .mc at all and go attack the learning curve for changing .cf files.&lt;BR /&gt;&lt;BR /&gt;I'm reading the .mc documentation at sendmail.org but so far haven't found the magic bullet for this.  Anyone?</description>
      <pubDate>Thu, 06 Mar 2008 17:24:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156731#M726545</guid>
      <dc:creator>Carl Houseman</dc:creator>
      <dc:date>2008-03-06T17:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail 8.13 masquerade nightmare</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156732#M726546</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;a) There are no details on HP-UX version and&lt;BR /&gt;exact Sendmail version you run.&lt;BR /&gt;&lt;BR /&gt;You said Sendmail 8.13, but that release &lt;BR /&gt;has number of subversions and patches.&lt;BR /&gt;&lt;BR /&gt;Masquerading is actually easy in normal&lt;BR /&gt;circumstances.&lt;BR /&gt;&lt;BR /&gt;Be aware of the following bug report for&lt;BR /&gt;Sendmail 8.13.3 on HP-UX:&lt;BR /&gt;&lt;BR /&gt;Identifier: QXCR1000556385&lt;BR /&gt;Legacy ID: JAGaf83753&lt;BR /&gt;Component Version: B.11.1 and B.11.23&lt;BR /&gt;Title: Sendmail 8.13.3 masquerade does not work&lt;BR /&gt;&lt;BR /&gt;Maybe you are hit by the same issue.&lt;BR /&gt;&lt;BR /&gt;How old is your version of sendmail?&lt;BR /&gt;&lt;BR /&gt;b) Run these couple of tests:&lt;BR /&gt;&lt;BR /&gt;# sendmail -bt -d0.13 &lt;BR /&gt;# sendmail -bt&lt;BR /&gt;&amp;gt; /tryflags HS&lt;BR /&gt;&amp;gt; /try esmtp localuser@hpux.domain.com&lt;BR /&gt;&lt;BR /&gt;For "tryflags", you can use the following tests:&lt;BR /&gt;&lt;BR /&gt;HS (header sender address)&lt;BR /&gt;ES (envelope sender address)&lt;BR /&gt;HR (header recipient address)&lt;BR /&gt;ER (envelope recipient address)&lt;BR /&gt;&lt;BR /&gt;c) It might be helpful to add the line in&lt;BR /&gt;.mc:&lt;BR /&gt;&lt;BR /&gt;FEATURE(masquerade_entire_domain)dnl&lt;BR /&gt;&lt;BR /&gt;I also prefer to use:&lt;BR /&gt;&lt;BR /&gt;MASQUERADE_DOMAIN_FILE(`/etc/mail/masquerade-domains.txt`)dnl&lt;BR /&gt;&lt;BR /&gt;instead of MASQUERADE_DOMAIN...&lt;BR /&gt;&lt;BR /&gt;I am not at my workplace today so I cannot&lt;BR /&gt;log into any HP-UX server to give you&lt;BR /&gt;simpler method of editing the sendmail.cf&lt;BR /&gt;directly. I often do that as well (I do not&lt;BR /&gt;worry about .mc files for simple config&lt;BR /&gt;changes)...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Thu, 06 Mar 2008 22:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156732#M726546</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-03-06T22:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail 8.13 masquerade nightmare</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156733#M726547</link>
      <description>I'm using 8.13.3 as provided by HP for HP-UX 11.11.   Google's got nothing on the JAGaf83753 bug you site.  Do you have a URL for that?</description>
      <pubDate>Thu, 06 Mar 2008 22:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156733#M726547</guid>
      <dc:creator>Carl Houseman</dc:creator>
      <dc:date>2008-03-06T22:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail 8.13 masquerade nightmare</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156734#M726548</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Unless you work at HP, you will not find it&lt;BR /&gt;on Google.&lt;BR /&gt;&lt;BR /&gt;Google is not a "know-it-all" place.&lt;BR /&gt;&lt;BR /&gt;In fact, for security and privacy reasons&lt;BR /&gt;I do not allow Google or any other major&lt;BR /&gt;Web site to put cookies on my computer so&lt;BR /&gt;I use these sites in very limited fashion.&lt;BR /&gt;&lt;BR /&gt;I suggest you contact HP representatives&lt;BR /&gt;through your maintenance contract, or&lt;BR /&gt;apply the latest patches, or even&lt;BR /&gt;install an open-source Sendmail 8.14.2.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Fri, 07 Mar 2008 00:53:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156734#M726548</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-03-07T00:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail 8.13 masquerade nightmare</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156735#M726549</link>
      <description>Google is a lot better at searching these forums than the forum search engine. No, Google doesn't know everyting, but when someone posts about a thing without any details about how to find the thing, I presume it must be easy to find with a search engine. So I do my due diligence by searching, as anyone should, before asking for more help.&lt;BR /&gt;&lt;BR /&gt;As for your paranoia over cookies, enjoy it if it makes you happy.&lt;BR /&gt;&lt;BR /&gt;Meanwhile I went searching in the patch database after uploading my inventory, and despite the fact that I have Sendmail 8.13.3 installed, it recommended a patch for 8.9.3. I don't plan on seeing what that does for my problem.&lt;BR /&gt;&lt;BR /&gt;This whole exercise of updating Sendmail is taking far more time than justified. I'm looking for a specific fix, patch, or change to .mc or .cf file that will solve the problem I've outlined.  If a newer version of sendmail is a *known* fix, then I need a .depot for HP-UX 11.11 - I don't have time to figure out anything less. If there isn't an easy fix I'm probably going to forget the whole thing and go back to 8.9.3.</description>
      <pubDate>Fri, 07 Mar 2008 02:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156735#M726549</guid>
      <dc:creator>Carl Houseman</dc:creator>
      <dc:date>2008-03-07T02:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail 8.13 masquerade nightmare</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156736#M726550</link>
      <description>On hpux 11.11, I run sendmail version 8.13.3 - Revision 2.004 - WTEC JAGag15759 9/28/2006 which is very close to the latest version. Also, I generate the sendmail configuration file using m4 and localsm.mc. Masquerading is taken care of with the following four lines in the mc file:&lt;BR /&gt;&lt;BR /&gt;define(`_MASQUERADE_ENVELOPE_')dnl&lt;BR /&gt;define(`MASQUERADE_NAME')dnl&lt;BR /&gt;MASQUERADE_AS(`____.com')dnl&lt;BR /&gt;FEATURE(`allmasquerade')dnl Masquerade recipient and sender addresses&lt;BR /&gt;~&lt;BR /&gt;I have found no problem with the results.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Mar 2008 11:19:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156736#M726550</guid>
      <dc:creator>Sam McKnight</dc:creator>
      <dc:date>2008-03-11T11:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail 8.13 masquerade nightmare</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156737#M726551</link>
      <description>OK, this sounds promising, except that I have no "localsm.mc" in /usr/newconfig/etc/mail/cf/cf.  Are you building sendmail.cf or submit.cf with that file?&lt;BR /&gt;&lt;BR /&gt;On the assumption that you were talking about building submit.cf with it, I added the commands you mention to my submit.mc and the results were the same as before.&lt;BR /&gt;&lt;BR /&gt;My sendmail version identifies itself as "Sendmail @(#)Sendmail version 8.13.3 - Revision 2.005 - 12 January 2007/8.13.3".   I would guess that is newer than "WTEC JAGag15759 9/28/2006".&lt;BR /&gt;&lt;BR /&gt;Here's my sendmail.mc:&lt;BR /&gt;&lt;BR /&gt;divert(0)dnl&lt;BR /&gt;VERSIONID(`$Id: generic-hpux10.mc,v 8.13 2001/05/29 17:29:52 ca Exp $')&lt;BR /&gt;OSTYPE(hpux11)dnl&lt;BR /&gt;DOMAIN(generic)dnl&lt;BR /&gt;define(`_X400_UUCP_')dnl&lt;BR /&gt;define(`_MASQUERADE_ENVELOPE_')dnl&lt;BR /&gt;define(`MASQUERADE_NAME')dnl&lt;BR /&gt;define(`confTRY_NULL_MX_LIST',`T')dnl&lt;BR /&gt;define(`LUSER_RELAY',`name_of_luser_relay')dnl&lt;BR /&gt;define(`DATABASE_MAP_TYPE',`dbm')dnl&lt;BR /&gt;define(`_CLASS_U_')dnl&lt;BR /&gt;define(`SMART_HOST',`otherhost.domain.com')dnl&lt;BR /&gt;TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5')dnl&lt;BR /&gt;MASQUERADE_AS(`domain.com')dnl&lt;BR /&gt;MASQUERADE_DOMAIN(`hpux.domain.com')dnl&lt;BR /&gt;FEATURE(`masquerade_envelope')dnl&lt;BR /&gt;MAILER(local)dnl&lt;BR /&gt;MAILER(smtp)dnl&lt;BR /&gt;MAILER(openmail)dnl&lt;BR /&gt;MAILER(uucp)dnl&lt;BR /&gt;&lt;BR /&gt;And here's submit.mc:&lt;BR /&gt;(I tried it with and without 'allmasquerade', no difference)&lt;BR /&gt;&lt;BR /&gt;divert(0)dnl&lt;BR /&gt;VERSIONID(`$Id: submit.mc,v 8.13 2003/09/10 22:12:48 ca Exp $')&lt;BR /&gt;define(`_MASQUERADE_ENVELOPE_')dnl&lt;BR /&gt;define(`MASQUERADE_NAME')dnl&lt;BR /&gt;define(`confCF_VERSION', `Submit')dnl&lt;BR /&gt;define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining&lt;BR /&gt;define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet&lt;BR /&gt;define(`confTIME_ZONE', `USE_TZ')dnl&lt;BR /&gt;define(`confDONT_INIT_GROUPS', `True')dnl&lt;BR /&gt;define(`SMART_HOST',`otherhost.domain.com')dnl&lt;BR /&gt;MASQUERADE_AS(`domain.com')dnl&lt;BR /&gt;dnl&lt;BR /&gt;dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]&lt;BR /&gt;FEATURE(`msp', `[127.0.0.1]')dnl</description>
      <pubDate>Tue, 11 Mar 2008 13:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-8-13-masquerade-nightmare/m-p/4156737#M726551</guid>
      <dc:creator>Carl Houseman</dc:creator>
      <dc:date>2008-03-11T13:45:41Z</dc:date>
    </item>
  </channel>
</rss>

