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)?


A _very_ slow newaliases is almost certainly as a result of the DNS not functioning. (A moderately slow one is usually something else :-))

If you can fix your DNS problems then you won't have a problem with newaliases. Having said that fixing the DNS problem might be rather hard.

Alternatively, put

test /etc/aliases.db -nt /etc/aliases &&

in front of the newaliases command in the sendmail start-up script. I haven't tested this, but it should be OK. It's also not perfect -- the contents of /etc/aliases.db actually depends upon the sendmail configuration as well as the contents of /etc/aliases, albeit in a fairly subtle way. I suppose really that the invocation of newaliases should be after the make/makemap stuff.

jch

jch


-- 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