|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: "Name service error for name=localhost type=A" Error
From: Wietse Venema (wietse
porcupine.org)
Date: Fri Feb 13 2004 - 13:58:59 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ryan Knopp:
> >>>>>>>><ryan
theknopps.com <mailto:ryan
theknopps.com>>: Name service
> >>error for name=localhost type=A: Host not found
>
> >>What is this? Is this a reply from the Postfix SMTP server while
> >>Postfix RECEIVES mail? Is this in an email message that Postfix
> >>returns to the sender when it is unable to DELIVER mail?
>
> This is what the sender gets sent back and this is also what gets sent
> to the root
localhost account. It comes from
> Mail Delivery System <MAILER-DAEMON
theknopps.com>
And now you have to find out why Postfix attempts to send
this mail to localhost (is there a content filter?).
If that is really what you want, then either configure a DNS zone
that answers to queries for "localhost", for example:
/etc/namedb/named.conf:
zone "localhost" in {
type master;
file "localhost";
};
/etc/namedb/localhost:
IN SOA spike.porcupine.org. wietse.spike.porcupine.org. (
1996120101 ; Serial
3600 ; Refresh
300 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS spike.porcupine.org.
IN A 127.0.0.1
or else you configure Postfix to look in /etc/hosts:
/etc/postfix/main.cf:
smtp_host_lookup = dns, native
This forces lookups via gethostbyname().
Wietse
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]