How to hide Server Name in the domain name when sending an email using sendmail on SCO unix

When I send email using the command line to one account in the same server it's not hiding the server name on the domain section, why ? Here's an example :

# mail henry
Subject: test
test
.
EOT

> > >and here is the message received :

From: root@vxgxnx.net (Superuser)
To: henry@atksco1.vxgxnx.net
Subject: test


How can I get rid of that atksco1 ?

thanks
henry007Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AmolCommented:
Open your sendmail config file /etc/mail/sendmail.mc:

# vi /etc/mail/sendmail.mc

Append/add/modify the lines as follows:

MASQUERADE_AS(vxgxnx.net)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(vxgxnx.net)dnl


Save and close the file. Update and restat sendmail server:

# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
# /etc/init.d/sendmail restart

0
henry007Author Commented:
I checked the sendmail.cf file and it already has those settings, please look below, do I have extra lines that I should have ? thanks


### sco.osr6.mc ###
# divert(-1)
# #
# #  This is a generic configuration file for SCO OpenServer 6.
# #  It has support for local and SMTP mail only.  If you want to
# #  customize it, copy it to a name appropriate for your environment
# #  and do the modifications there.
# #
#
# divert(0)dnl
# VERSIONID(`@(#)opensrc:src/sendmail/patches/cf/cf/sco.osr6.mc /main/uw714mp/11
')dnl
# OSTYPE(sco.osr6)dnl
# DOMAIN(generic)dnl
# define(`confDONT_BLAME_SENDMAIL',`groupwritabledirpathsafe,linkedaliasfileinwr
itabledir')dnl
# FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
# FEATURE(`use_cw_file')dnl
# FEATURE(`always_add_domain')dnl
# LOCAL_CONFIG
# define(`confDOMAIN_NAME',`vegena.net')dnl
 define(`MASQUERADE_ENVELOPE')dnl
 define(`masquerade_entire_domain')dnl
# define(`MASQUERADE_NAME')dnl
 MASQUERADE_AS(`vegena.net')dnl
 FEATURE(`masquerade_envelope')dnl
 FEATURE(`masquerade_entire_domain')dnl
 MASQUERADE_DOMAIN(`vegena.net')dnl
 FEATURE(`allmasquerade')dnl
# MAILER(local)dnl
# MAILER(smtp)dnl
~
0
jar3817Commented:
You only need the MASQUERADE_ENVELOPE feature and the MASQUERADE_DOMAIN. Also it shouldn't be in the LOCAL_CONFIG section, try this setup:



divert(0)dnl
VERSIONID(`@(#)opensrc:src/sendmail/patches/cf/cf/sco.osr6.mc /main/uw714mp/11')dnl
OSTYPE(sco.osr6)dnl
DOMAIN(generic)dnl
define(`confDONT_BLAME_SENDMAIL',`groupwritabledirpathsafe,linkedaliasfileinwritabledir')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`always_add_domain')dnl
define(`confDOMAIN_NAME',`vegena.net')dnl
FEATURE(`masquerade_envelope')dnl
MASQUERADE_DOMAIN(`vegena.net')dnl
MAILER(local)dnl
MAILER(smtp)dnl
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

AmolCommented:
can u comment this and chk,

FEATURE(`allmasquerade')dnl
0
henry007Author Commented:
Still not working, after reseting the P86sendmail stop / start script, I'm still seeing the atksco1.   this only happens when the email gets generated from the command line, If I use thunderbird/outlook to send an email to a SCO user it gets it perfectly. Any other idea ?
0
henry007Author Commented:
amolg, still not working after commenting out the:

 FEATURE(`allmasquerade')dnl
0
jar3817Commented:
Instead of doing this:

# mail henry

Try with a full email address:

# mail henry@vxgxnx.net
0
henry007Author Commented:
It worked  that way, so there is no way of avoiding to type in all the domain name ? (i.e. @vxgxnx.net ) ?
0
jar3817Commented:
Well, not really, because when you don't specify a domain it looks like /etc/hosts for the name associated with the local IP. You might be able to change that entry in /etc/hosts, but that could mess up other services. If you're sending emails, better to just use the full email address.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.