sendmail MASQUERADE_AS

From: Jim Winkle (jwinkle_at_doit.wisc.edu)
Date: 02/24/05

  • Next message: richard kumar: "server room temp"
    Date: Wed, 23 Feb 2005 17:35:59 -0600 (CST)
    To: sunmanagers@sunmanagers.org
    
    

    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


  • Next message: richard kumar: "server room temp"

    Relevant Pages

    • Re: mails remain in clientmqueue and is not sent
      ... sendmail remain there forever and never are copied to mqueue or even ... No trace of ... What is reported when you push the queued messages in verbose mode ... with DNS tracking turned on? ...
      (comp.mail.sendmail)
    • Re: Sendmail Start & End Trace
      ... > invoked n number of times depending upon how many recipients are sent ... Is there a way to trace the beginning and end of Sendmail? ... A transaction in an SMTP server? ...
      (comp.mail.sendmail)
    • 2.6.24-rc6-mm1 - oddness with IPv4/v6 mapped sockets hanging...
      ... I'm seeing problems with Sendmail on 24-rc6-mm1, ... It's not consistent - sometimes Fetchmail will wedge on the very first mail, ... procmail has sent data, and is waiting for a response back, and sendmail is ... Call Trace: ...
      (Linux-Kernel)
    • Re: sendmail and syslog
      ... The problem is what the monitor is sending, not what sendmail is ... but if the stock sendmail allows to be monitored without a trace ... So I'd prefer deleting the lines from the logs before further ...
      (comp.mail.sendmail)