I am sure this was brought up many times before, but here it comes again...
I am using sendmail 8.7.1 (came from Red Hat 2.1) and a caching nameserver
with diald on top of all this.
Having looked through the Mail Queue Mini-Howto I changed my sendmail.cf
and everything started to work as expected except for one thing. I have
diald configured to bring up the link on named udp requests. However, sendmail
apparently tries to call resolver even when just placing the outgoing messages
in the queue. And nothing seems to stop it!!! I am not sure I want to give up
my diald config or to recompile sendmail with BIND=0 (or smth).
Here is what I ended up doing. Since I am the only user, I am running sendmail
in defer mode (prevents all name lookups). In order to deliver local mail
quickly (since it gets queued as well) I have set up three cron jobs:
*/5 * * * * /usr/sbin/sendmail -qRdam &
*/5 * * * * /usr/sbin/sendmail -qRroot &
*/5 * * * * /usr/sbin/sendmail -qSroot &
Every five minutes messages from/to root and to dam (me) are delivered. Not
very elegant, is it? Regular sendmail -q is run from ip-up script.
If anybody has better ideas, PLEASE, let me know.