We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Hostname diffficulty

ksbunger1
ksbunger1 asked
on
Medium Priority
339 Views
Last Modified: 2010-08-05
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
Comment
Watch Question

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
Commented:
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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.