Suppressing host name from address

Suppressing host name from address

Post by Azfar Kazm » Tue, 16 Jun 1998 04:00:00



How do I suppress host name from email address? E.g. my domain is xyz.com
and host is abc. The email address becomes abc.xyz.com

When I send mail, it automatically prepends the host name to both To: and
From: field [assuming that I am sending mail to myself.]

I want to make it: xyz.com suppressing the host. I know it is possible, I
don't know how!!

--
Azfar Kazmi

http://www.oup.com.pk

 
 
 

Suppressing host name from address

Post by Claus Assma » Thu, 18 Jun 1998 04:00:00


Quote:Azfar Kazmi writes:
>How do I suppress host name from email address? E.g. my domain is xyz.com
>and host is abc. The email address becomes abc.xyz.com

It's explained in the FAQ which should be consulted before posting.


a) Again from the FAQ of sendmail V8:
  * How do I make all my addresses appear to be from a single host?
        Using the V8 configuration macros, use:
                MASQUERADE_AS(my.dom.ain)
        This will cause all addresses to be sent out as being from
        the indicated domain.
    If you're using version 8.x (x > 6) sendmail, and you want to hide
    this information in the envelope as well as the headers, use:
        FEATURE(masquerade_envelope)

If you also want to masquerade the recipients, use
FEATURE(allmasquerade)
But be careful and read cf/README first about possible problems!

b) For Sun's sendmail (prior to version 8):

Look for a rule (should be in ruleset 22) like

and change it to

if you have correctly defined $m.

If you have SunOS 5.x (with x < 5; aka Solaris 2.x) you also have to
change the following rule:

into:

Hope this helps,

Claus Assmann
--
[Please don't send me copies of usenet postings. Thanks!]
<URL: http://www.informatik.uni-kiel.de/%7Eca/ >