LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2010, 02:03 PM   #1
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 144

Rep: Reputation: 15
Question postfix complains of mystery host


At one point I changed my hostname from mail.jiffycloud.com to cloud1.jiffycloud.com

My postfix however complains about receiving mail for a non-existent machine

Code:
Apr 15 14:56:32 domU-12-31-39-02-BD-C1 sendmail[1567]: o3FItvV8001565: o3FIuWV8001567: DSN: Host unknown (Name server: mail.jiffycloud.com.: non-recoverable error)
Apr 15 14:56:32 domU-12-31-39-02-BD-C1 sendmail[1567]: o3FIuWV8001567: to=<bluethundr {at} gmail {dot} com>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=31435, relay=gmail-smtp-in.l.google.com. [74.125.113.27], dsn=2.0.0, stat=Sent (OK 1271357792 30si3983691vws.43)
Yet I have grepped my /etc directory for that host and turn up nothing for that hostname except in my backup files:

Code:
[root@cloud1 ~]# grep -ri mail.jiffycloud.com /etc
/etc/postfix/bak/main.cf-.bak:masquerade_domains = mail.jiffycloud.com jiffycloud.com !sub.dyndomain.com
/etc/postfix/bak/main.cf-04-14-10.bak:masquerade_domains = mail.jiffycloud.com jiffycloud.com !sub.dyndomain.com
/etc/postfix/bak/main.04-15-10.cf.bak:masquerade_domains = mail.jiffycloud.com jiffycloud.com !sub.dyndomain.com
/etc/postfix/bak/main.04-07-10.cf.bak:masquerade_domains = mail.jiffycloud.com jiffycloud.com !sub.dyndomain.com
grep: /etc/httpd/run/dbus/system_bus_socket: No such device or address
grep: /etc/httpd/run/audispd_events: No such device or address
grep: /etc/httpd/run/avahi-daemon/socket: No such device or address
grep: /etc/httpd/run/cups/cups.sock: No such device or address
what gives?

I have changed /etc/mailname to my new hostname and have
 
Old 04-15-2010, 04:05 PM   #2
ShadowCat8
Member
 
Registered: Nov 2004
Location: San Bernardino, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 261

Rep: Reputation: 52
Greetings,

The first 3 questions that comes to mind for me are as follows:
  1. What is in your /etc/nsswitch.conf file for hosts and networks?
  2. What is in your /etc/resolv.conf?
  3. What is in your /etc/hosts file for the machine itself?

HTH.
 
Old 04-16-2010, 09:57 AM   #3
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 144

Original Poster
Rep: Reputation: 15
Post the config files you asked for

Greetings,

Quote:
"The first 3 questions that comes to mind for me are as follows":
  1. What is in your /etc/nsswitch.conf file for hosts and networks?
    Code:
    #
    # /etc/nsswitch.conf
    #
    # An example Name Service Switch config file. This file should be
    # sorted with the most-used services at the beginning.
    #
    # The entry '[NOTFOUND=return]' means that the search for an
    # entry should stop if the search in the previous entry turned
    # up nothing. Note that if the search failed due to some other reason
    # (like no NIS server responding) then the search continues with the
    # next entry.
    #
    # Legal entries are:
    #
    #       nisplus or nis+         Use NIS+ (NIS version 3)
    #       nis or yp               Use NIS (NIS version 2), also called YP
    #       dns                     Use DNS (Domain Name Service)
    #       files                   Use the local files
    #       db                      Use the local database (.db) files
    #       compat                  Use NIS on compat mode
    #       hesiod                  Use Hesiod for user lookups
    #       [NOTFOUND=return]       Stop searching if not found so far
    #
    
    # To use db, put the "db" in front of "files" for entries you want to be
    # looked up first in the databases
    #
    # Example:
    #passwd:    db files nisplus nis
    #shadow:    db files nisplus nis
    #group:     db files nisplus nis
    passwd:     files
    shadow:     files
    group:      files
    
    #hosts:     db files nisplus nis dns
    hosts:      files dns
    
    # Example - obey only what nisplus tells us...
    #services:   nisplus [NOTFOUND=return] files
    #networks:   nisplus [NOTFOUND=return] files
    #protocols:  nisplus [NOTFOUND=return] files
    #rpc:        nisplus [NOTFOUND=return] files
    #ethers:     nisplus [NOTFOUND=return] files
    #netmasks:   nisplus [NOTFOUND=return] files     
    
    bootparams: nisplus [NOTFOUND=return] files
    
    ethers:     files
    netmasks:   files
    networks:   files
    protocols:  files
    rpc:        files
    services:   files
    bootparams: nisplus [NOTFOUND=return] files
    
    ethers:     files
    netmasks:   files
    networks:   files
    protocols:  files
    rpc:        files
    services:   files
    netgroup:   files
    
    publickey:  nisplus
    
    automount:  files
    aliases:    files nisplus
    
                                                                  63,0-1        Bot
  2. What is in your /etc/resolv.conf?
    Code:
    ; generated by /sbin/dhclient-script
    search compute-1.internal
    nameserver 172.16.0.23
  3. What is in your /etc/hosts file for the machine itself?

    Code:
    127.0.0.1   cloud1  cloud1.jiffycloud.com
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix: How to configure postfix to process mail from another host m1ckey78 Linux - Server 3 10-15-2008 10:59 AM
2005le - Postfix and Host Names High-gain Linux - Newbie 2 07-31-2006 09:34 AM
postfix - host unknown doronunu Linux - Software 2 07-26-2006 06:34 PM
postfix and relay host mozilla Linux - Networking 1 11-23-2005 08:42 PM
KDE complains about host name, Gnome won't start. Ekkume *BSD 15 04-01-2005 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration