OSEC

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: Ryan Knopp (ryantheknopps.com)
Date: Fri Feb 13 2004 - 14:25:32 CST


Wietse Venema wrote:

>Ryan Knopp:
>
>
>> >>>>>>>><ryantheknopps.com <mailto:ryantheknopps.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 rootlocalhost account. It comes from
>>Mail Delivery System <MAILER-DAEMONtheknopps.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
>
>
>
>
Kind of made a mistake if this helps, my Postfix errors are being sent
to postmastertheknopps.com , my cron messages get sent to rootlocalhost.