Hostname diffficulty

I am attempting to get a fax to e-mail software using sendmail ans the e-mail cliet to show that is came from a specific domain name. I changed the hostname to the name I wanted it to show up as and now instead of fax@localhost.localdomain it shows fax@70.43.18.146.nw.nuvox.net.
The mail log shows ctladdr_<fax@70.43.18.14.6.nw.nuvox.net>

My /etc/hosts file looks like this

127.0.0.1         XXXXXXXX.com                    XXXXXXXXX
64.202.166.12  XXXXXXXX.com                    64.202.166.12

What do I need to do to get he email reciient to see fax@xxxxxxxxx.com
ksbunger1Asked:
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.

paullamhkgCommented:
try change the entry in sendmail.cf as below

##################
#   local info   #
##################

# my LDAP cluster
# need to set this before any LDAP lookups are done (including classes)
#D{sendmailMTACluster}$m

Cwyourdomain.com
# file containing names of hosts for which we receive email
Fw/etc/mail/local-host-names

# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM

# host/domain names ending with a token in class P are canonical
CP.

# "Smart" relay host (may be null)
DSservername.yourdomain.com

after change restart the sendmail service and try again
0
jar3817Commented:
don't edit sendmail.cf directly...
edit your /etc/mail/sendmail.mc file and regenerate the .cf file doing something like:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf


In sendmail.mc you need lines like:

MASQUERADE_AS(`xxxxxxxx.com')dnl
FEATURE(masquerade_envelope)dnl

the first line just affects the headers...the second line will affect the envelope address (in the From: header). Also note the first "`" in first line is a backtic not a single quote.
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
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.