Re: [exim] Issues with exim -bt and possible race condition.…

Góra strony
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
Dla: Odhiambo Washington
CC: exim-user
Temat: Re: [exim] Issues with exim -bt and possible race condition...
On Thu, 7 Aug 2008, Odhiambo Washington wrote:
>
> Now, running `exim -bt` is an issue ....
> How do I circumvent this?


Use the address_test precondition. You might need two routers, one for
testing mode and one for normal mode.

> 2008-08-07 11:50:10 1KR1C3-000KNF-MB failed to unlink
> /var/spool/exim/msglog/3/1KR1C3-000KNF-MB
>
> Is this some race condition?


It might be because the message log is never being created in the first
place. Do you ever get "Couldn't open message log" errors? If not, the
patch below might provide enlightenment.

--- src/deliver.c       22 Aug 2007 14:20:28 -0000      1.45
+++ src/deliver.c       7 Aug 2008 11:10:33 -0000
@@ -6554,7 +6554,8 @@
     else
       {
       if (Uunlink(spoolname) < 0)
-        log_write(0, LOG_MAIN|LOG_PANIC_DIE, "failed to unlink %s", spoolname);
+        log_write(0, LOG_MAIN|LOG_PANIC_DIE, "failed to unlink %s: %s",
+           spoolname, strerror(errno));
       }
     }


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}