Jeroen van Aart wrote:

> Schramm, Dominik wrote:
> 
> > And yet another question: where can I see that an unseen delivery 
> > is taking place? Neither the logs say so nor is there any clue in 
> > the spool files; and exim -bp does not mention it either. 
> 
> I think a "log_message= xxxx" statement nearby should do the trick?

Good idea. But if I include this in the system filter:

if not first_delivery
then
   finish
endif

logfile /var/log/exim4/mainlog

if foranyaddress $recipients ( $thisaddress   is    [EMAIL PROTECTED] )
then
      logwrite "$tod_log $message_id unseen deliver: \
             [EMAIL PROTECTED] errors_to [EMAIL PROTECTED]"
        unseen deliver [EMAIL PROTECTED] errors_to [EMAIL PROTECTED]
        headers add "X-test-header: test"
endif

then only one message is actually sent, but the logwrite and headers add 
commands are executed at at every retry. So the logfile looks like this
(I ran exim4 -qf at short intervals):

+++ 1KDKGb-00020W-HM has not completed +++
2008-06-30 16:22:05 1KDKGb-00020W-HM <= [EMAIL PROTECTED] [4.5.6.7] for [EMAIL 
PROTECTED]
2008-06-30 16:22:05 1KDKGb-00020W-HM unseen deliver: [EMAIL PROTECTED] 
errors_to [EMAIL PROTECTED]
2008-06-30 16:25:14 1KDKGb-00020W-HM mailserver-2.outside.com [9.10.11.12] 
Connection timed out
2008-06-30 16:25:14 1KDKGb-00020W-HM == [EMAIL PROTECTED] <system-filter> 
R=dnslookup T=remote_smtp defer (110): Connection timed out
2008-06-30 16:54:53 1KDKGb-00020W-HM unseen deliver: [EMAIL PROTECTED] 
errors_to [EMAIL PROTECTED]
2008-06-30 16:58:02 1KDKGb-00020W-HM mailserver-2.outside.com [9.10.11.12] 
Connection timed out
2008-06-30 16:58:02 1KDKGb-00020W-HM == [EMAIL PROTECTED] <system-filter> 
R=dnslookup T=remote_smtp defer (110): Connection timed out
2008-06-30 17:04:03 1KDKGb-00020W-HM recipient <[EMAIL PROTECTED]> added by root
2008-06-30 17:04:03 1KDKGb-00020W-HM unseen deliver: [EMAIL PROTECTED] 
errors_to [EMAIL PROTECTED]
2008-06-30 17:04:05 1KDKGb-00020W-HM mailserver-2.outside.com [9.10.11.12] 
Connection timed out
2008-06-30 17:04:05 1KDKGb-00020W-HM == [EMAIL PROTECTED] <system-filter> 
R=dnslookup T=remote_smtp defer (110): Connection timed out
2008-06-30 17:04:36 1KDKGb-00020W-HM => [EMAIL PROTECTED] 
H=businessmart-mailserver
...

and the message looks like this:

Received: ...
Message-Id: <[EMAIL PROTECTED]>
From: <[EMAIL PROTECTED]>
Date: Mon, 30 Jun 2008 16:22:05 +0200
X-Spam-Status: No
X-test-header: test
X-test-header: test
X-test-header: test
Bcc:
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 30 Jun 2008 15:06:21.0220 (UTC) 
FILETIME=[DAF72640:01C8DAC2]

Thanks for any comments,
Dominik


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to