Operating System - HP-UX
1752305 Members
5144 Online
108786 Solutions
New Discussion юеВ

Re: hostname doesnt match emails

 
SOLVED
Go to solution
Dave Chamberlin
Trusted Contributor

hostname doesnt match emails

When email goes out from my system, my hostname is shown as jupiter10. When I do a hostname, it shows as jupiter. My netconf file has it as jupiter. Where is my mail getting the jupiter10 name from? Thanks..
7 REPLIES 7
someone_4
Honored Contributor

Re: hostname doesnt match emails

Hello,
Check your etc/hosts for that entry.

Richard
Bill Hassell
Honored Contributor
Solution

Re: hostname doesnt match emails

There are a lot of places to check. Start with /etc/hosts. Then type: nslookup jupiter10 (did it return anything? If so, compare the IP address for jupiter10 with the IPaddr for jupiter. There are different config files depending on the numerous versions of sendmail. Check if sendmail is version 8.xx and if so, look at /etc/mail/snedmail.cw too.


Bill Hassell, sysadmin
Dave Kelly_1
Respected Contributor

Re: hostname doesnt match emails

To determine how sendmail is configured, run the command:


sendmail -d0.1
This will show you something like this:

Version 8.8.6 (PHNE_17135)
Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET
NETUNIX NEWDB NIS QUEUE SCANF SMTP USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = hostname
(canonical domain name) $j = hostname.domain.com
(subdomain name) $m = domain.com
(node name) $k = hostname
========================================================

Dave Chamberlin
Trusted Contributor

Re: hostname doesnt match emails

My /etc/host file does have it as jupiter10. Can I change it jupiter without bad stuff happening?
Edward Alfert_2
Respected Contributor

Re: hostname doesnt match emails

yes... as long as it is supposed to be jupiter instead of what it currently says. If something acts flaky, just change it back.

you can always use:

#set_parms hostname

and it will ask you for the name you want to use for your system. it will make all modifications for you automatically and correctly.

"Do what you love and you will never work a day in your life." - Confucius
Kevin Wright
Honored Contributor

Re: hostname doesnt match emails

If your concerned..keep one of them an alias
in /etc/hosts
juniper juniper10

try nslookup on both names..there could be a CNAME set up in dns for the host as well..or for that matter, you could add one if you wish.
Magdi KAMAL
Respected Contributor

Re: hostname doesnt match emails

Hi Dave,

It may be a conflict between your /etc/hosts and your DNS Database.

Your server IP address may be defined as "jupiter" in your /etc/hosts and "jupiter01" in DNS. And your email is resolving the address from DNS first.

nslookup jupiter
nslookup jupiter01
cat /etc/hosts ? grep jupiter ? grep -v grep


will gave you what is gonna wrong.

Magdi