From: Wietse Venema (no email)
Date: Fri Feb 13 2004 - 14:58:59 EST
Ryan Knopp:
> >>>>>>>>< <mailto:>>: 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 at localhost account. It comes from
> Mail Delivery System <>
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
|
|
|