sendmail MASQUERADE_AS

From: Jim Winkle (jwinkle@doit.wisc.edu)
Date: Wed Feb 23 2005 - 18:35:59 EST


Hi --

I'm trying to get masquerading to work with Sun's sendmail 8.11.7p1+Sun/8.11.7, Solaris 8.

It works fine when I use any existing name for host.domain -- except of course the name I want to use -- using the following statements in sendmail.mc:
    MASQUERADE_AS(`host.domain')
    FEATURE(`masquerade_envelope')
    FEATURE(`allmasquerade')

I want to masquerade as biocomp.doit.wisc.edu. The machine name is biocomp2.doit.wisc.edu. (I want to be able to have a biocomp3.doit.wisc.edu someday, and continue masquerading as biocomp.doit.wisc.edu.)

But what I see when I trace it in verbose mode (sendmail -v) is:

>>> MAIL From:<jwinkle@biocomp2.doit.wisc.edu>

biocomp and biocomp2 resolve to the same IP address. Receiving mail addressed to biocomp.doit.wisc.edu works fine by using /etc/mail/local-host-names.

Any ideas how to get this working as desired? I will summarize if/when I get it working. Other info that might be useful:

My /etc/hosts looks like:
    #
    # Internet host table
    #
    127.0.0.1 localhost
    128.104.22.200 biocomp2 biocomp2.doit.wisc.edu mailhost loghost

Here's the output of '/usr/lib/sendmail -bt -d0 </dev/null':
    Version 8.11.7p1+Sun
     Compiled with: LDAPMAP MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7
                    NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB NIS NISPLUS
                    QUEUE SCANF SMTP USERDB XDEBUG

    ============ SYSTEM IDENTITY (after readcf) ============
          (short domain name) $w = biocomp2
      (canonical domain name) $j = biocomp2.doit.wisc.edu
             (subdomain name) $m = doit.wisc.edu
                  (node name) $k = biocomp2
    ========================================================

    ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
    Enter <ruleset> <address>

Thanks!

-- Jim
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:13 EDT