[CentOS] sendmail question

Wed Oct 21 18:52:54 UTC 2009
Dan Carl <danc at bluestarshows.com>

Jerry Geis wrote:
>> My guess would be a resolving problem also.
>> Its usually what causes sendmail to slow down.
>> Check your /etc/hosts file
>> Dan
>>   
>>     
> My /etc/hosts file is only has the "nameserver x.x.x.x" entry.
>
> the /var/log/maillog shows the entry right away when "mail" on the 
> command line is done.
> Again, this is mail originating on the the box and destination is on the 
> same box.
>
> mailq always shows 0, even doing it repeatedly.
>
> the mail delivery  is delayed exactly 2 minutes.
>
> I have 127.0.0.1 localhost in the /etc/hosts file.
>
> Very odd, any thoughts?
>
>   
If you don't have DNS running on the box, try adding the machine name to 
your hosts file
Example:
127.0.0.1               localhost.localdomain localhost localdomain 
your-machine-name-here

Dan