[CentOS] sendmail question

Thu Oct 22 13:29:57 UTC 2009
Alexander Dalloz <ad+lists at uni-x.org>

Jerry Geis schrieb:
>> 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.

Sendmail demands a dotted hostname in /etc/hosts for itself. "localhost"
is not enough. "localhost.localdomain" (which is even the CentOS default
for 127.0.0.1) works.

> Very odd, any thoughts?
> 
> Jerry

Alexander