RE: sendmail very slow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Ball wrote:
> When /etc/init.d/sendmail starts, it waits for a long time on the
> /usr/bin/newaliases command.  According to the documentation, this
> command is needed to recompile the /etc/aliases file, which I've never
> changed.  Is there a reason the default one takes so long to recompile
> (or why its last-modified date isn't checked)?
> 
> Tom

Are you sure sendmail is stalling on the newaliases command? Thats just a
database. 

Usually when sendmail stalls on startup its because it cannot determine its
canonical name. This is usually caused by either your systems resolver libs
misconfigured or the hostname/domain name are not properly set. If this is a
dialup system , make sure /etc/hosts has at least the localhost entry.

After your system comes up, type:

# sendmail -bt -d0.1 </dev/null

An example of a properly configured system would look like:

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = voyager
  (canonical domain name) $j = voyager.mydomain.com
         (subdomain name) $m = mydomain.com
              (node name) $k = voyager
========================================================

Also, you can change the /etc/init.d/sendmail scripts first line from:
#!/bin/bash
  to
#!/bin/bash -x

This will allow you to watch each command in the sendmail script as its
executed.

Steve Cowles


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux