When I disable the interface before starting mta, then the mta does not
allow sends to the hosts that it couldn't connect to on start.
Ie, if my host is mail.internet.com, and when starting mta the mta can't
reach mail.internet.com, then all sent email will get stuck with a logged
message of network is unreachable.

I was thinking of removing exim4 from rc2.d, and making a cron task that
will check if I have ping to mail.internet.com, and once I have it, I would
start exim4. Do I have any other choices?

This is fairly annoying, perhaps I should report this as a bug to the exim
maintainers??

Thank you for all your help,
nachum



-----Original Message-----
From: Micha Feigin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 20, 2004 3:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Debian with Exim4


On Thu, May 20, 2004 at 12:29:18PM +0300, Tzafrir Cohen wrote:
> On Thu, May 20, 2004 at 12:15:03PM +0200, Nachum Kanovsky wrote:
> > No delay when connected, but the delay can be upwards of a few 
> > minutes, when it is not connected.
> > 
> > Here is what I've checked so far:
> > Strace reports waitpid(-1, 0xbfffff8c, WNOHANG) and waits on this 
> > for a while,
> 
> Try 'strace -f' to follow after a fork.
> 

I checked it out on my laptop. It looks like exim4 is trying to resolve the
ip of hostname (including domain), and it insists on connecting to the dns
server, having an entry in hosts doesn't seem to help (same behavior with
using host, ping does work through hosts)

Any idea on how to make host and exim4 go through hosts to resolve hostname?

That is I have hostname litshi, domain luna.local (in resolv.conf).

both strace and tcpdump show a connection to the dns server to resolve
litshi.luna.local.

strace -f produces (192.168.0.1 would be the dns server)

[pid 17824] close(4)                    = 0
[pid 17824] munmap(0x40355000, 45100)   = 0
[pid 17824] socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
[pid 17824] connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("192.168.0.1")}, 28) = 0 [pid 17824] send(4,
"n\273\1\0\0\1\0\0\0\0\0\0\6litshi\4luna\5local\0\0"..., 35, 0) = 35 [pid
17824] gettimeofday({1085060186, 109435}, NULL) = 0 [pid 17824] poll(
<unfinished ...> [pid 17803] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid 17803] rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 [pid 17803]
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 17803]
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 [pid 17803]
rt_sigaction(SIGINT, {0x8075fd0, [], SA_RESTORER, 0x4008f658}, {0x80837d0,
[], SA_RESTORER, 0x4008f658}, 8) = 0 [pid 17803] waitpid(-1, Process 17803
suspended  <unfinished ...> [pid 17824] <... poll resumed> [{fd=4,
events=POLLIN}], 1, 5000) = 0 [pid 17824] send(4,
"n\273\1\0\0\1\0\0\0\0\0\0\6litshi\4luna\5local\0\0"..., 35, 0) = 35 [pid
17824] gettimeofday({1085060191, 111916}, NULL) = 0 [pid 17824] poll(
<unfinished ...>

> -- 
> Tzafrir Cohen                       +---------------------------+
> http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
> mailto:[EMAIL PROTECTED]       +---------------------------+
> 
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with the 
> word "unsubscribe" in the message body, e.g., run the command echo 
> unsubscribe | mail [EMAIL PROTECTED]
> 
>  
>  +++++++++++++++++++++++++++++++++++++++++++
>  This Mail Was Scanned By Mail-seCure System
>  at the Tel-Aviv University CC.
> 

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with the word
"unsubscribe" in the message body, e.g., run the command echo unsubscribe |
mail [EMAIL PROTECTED]


================================================================To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to