LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   postfix complains of mystery host (https://www.linuxquestions.org/questions/linux-newbie-8/postfix-complains-of-mystery-host-802251/)

bluethundr 04-15-2010 02:03 PM

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

ShadowCat8 04-15-2010 04:05 PM

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.

bluethundr 04-16-2010 09:57 AM

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


All times are GMT -5. The time now is 02:03 PM.