Dear Fred (et al.), On Fri, 06 Sep 2002 11:44:39 -0400, Fred Mushel <[EMAIL PROTECTED]> wrote:
> I have in my sendmail.mc file the following: > > FEATURE(limited_masquerade)dnl You probably don't want limited_masquerade...read on... > MASQUERADE_AS(domainname.com)dnl Quoting /usr/share/sendmail-cf/README (from sendmail-cf-8.11.6-3): limited_masquerade Normally, any hosts listed in class {w} are masqueraded. If this feature is given, only the hosts listed in class {M} (see below: MASQUERADE_DOMAIN) are masqueraded. This is useful if you have several domains with disjoint namespaces hosted on the same machine. ... Normally the only addresses that are masqueraded are those that come from this host (that is, are either unqualified or in class {w}, the list of local domain names). You can augment this list, which is realized by class {M} using MASQUERADE_DOMAIN(`otherhost.domain') The effect of this is that although mail to [EMAIL PROTECTED] will not be delivered locally, any mail including any [EMAIL PROTECTED] will, when relayed, be rewritten to have the MASQUERADE_AS address. This can be a space-separated list of names. If these names are in a file, you can use MASQUERADE_DOMAIN_FILE(`filename') to read the list of names from the indicated file (i.e., to add elements to class {M}). > My named running on same machine as sendmail has MX record > > IN MX 10 mailhost.domainname.com > > and > > mailhost IN A my-ip-address for host I don't think DNS has any impact on this. > In /etc/mail/local-host-names, I have domainname.com as well as > other sister company domains that named handles, and sendmail > handles. Again from the README: If your host is known by several different names, you need to augment class {w}. This is a list of names by which your host is known, and anything sent to an address using a host name in this list will be treated as local mail. You can do this in two ways: either create the file /etc/mail/local-host-names containing a list of your aliases (one per line), and use ``FEATURE(`use_cw_file')'' in the .mc file, or add ``LOCAL_DOMAIN(`alias.host.name')''. Be sure you use the fully-qualified name of the host, rather than a short name. This is pertinent to class {w}, the "list of names by which your host is known," not class {M}, the list of domains that should be masqueraded. When you enabled the limited_masquerade feature, you stated that you wanted ONLY the class {M} names to be masqueraded, and not the class {w} ones. So you either need to add entries with MASQUERADE_DOMAIN or MASQUERADE_DOMAIN_FILE, or remove the limited_masquerade feature to allow your host's other names to be masqueraded as designed. > I still however get [EMAIL PROTECTED] as the sender > address. > > I tried second response suggestion which indicated replacing > > # who I masquerade as (null for no masquerading) (see also $=M) > DM domain.com That's the same as MASQUERADE_AS(domainname.com) in your .mc file. > change to !! and make sure dns points to this machine (MX) That's new to me...I don't think I understood the suggestion. > Sender name is still [EMAIL PROTECTED] > > Any thing else I am missing. I hope the information above will cover it. In the mean time, when you modify the sendmail.cf file or any of the files referenced by it (except aliases -- I don't think there are any others that automatically get re-read), remember to restart sendmail so it will use the new configuration. (I've been stumped a number of times when my changes didn't work, and then realized that I hadn't actually caused them to be used!) Truly, Jonathan -- / Jonathan R. Johnson | "Every word of God is flawless." \ | Minnetonka Software, Inc. | -- Proverbs 30:5 | \ [EMAIL PROTECTED] | My own words only speak for me. / -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list