SUMMARY: sendmail MASQUERADE_AS

From: Jim Winkle <jwinkle_at_doit.wisc.edu>
Date: Tue Mar 08 2005 - 14:23:41 EST
Thanks to Crist Clark, R A Lichtensteiger, and others for helping me with this.

Crist figured out that one of the rules using Canonify2 should be deleted, which fixed the problem. I did a little more investigating, and discovered I was using subsidiary-v7sun.mc as a model, and should have been using main-v7sun.mc. Started over from there, and all is well.

-- Jim

On Wed, 23 Feb 2005, Jim Winkle wrote:
> 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
Received on Tue Mar 8 14:24:13 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:44 EST