[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

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
0
ksbunger1
Asked:
ksbunger1
1 Solution
 
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now