Re: [exim] Deferred messages disappearing, message "Complete…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Schramm, Dominik
Date:  
À: exim-users
Sujet: Re: [exim] Deferred messages disappearing, message "Completed" prematurely
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    order@??? )
then
      logwrite "$tod_log $message_id unseen deliver: \
             copyaddress@??? errors_to it-operations@???"
    unseen deliver copyaddress@??? errors_to it-operations@???
    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 <= edi@... [4.5.6.7] for copyaddress@???
2008-06-30 16:22:05 1KDKGb-00020W-HM unseen deliver: copyaddress@??? errors_to it-operations@???
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 == copyaddress@??? <system-filter> R=dnslookup T=remote_smtp defer (110): Connection timed out
2008-06-30 16:54:53 1KDKGb-00020W-HM unseen deliver: copyaddress@??? errors_to it-operations@???
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 == copyaddress@??? <system-filter> R=dnslookup T=remote_smtp defer (110): Connection timed out
2008-06-30 17:04:03 1KDKGb-00020W-HM recipient <dominik.schramm@???> added by root
2008-06-30 17:04:03 1KDKGb-00020W-HM unseen deliver: copyaddress@??? errors_to it-operations@???
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 == copyaddress@??? <system-filter> R=dnslookup T=remote_smtp defer (110): Connection timed out
2008-06-30 17:04:36 1KDKGb-00020W-HM => dominik.schramm@??? H=businessmart-mailserver
...

and the message looks like this:

Received: ...
Message-Id: <z05dafk5I8tKRu.asdfasdf@...>
From: <order@???>
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: it-operations@???
X-OriginalArrivalTime: 30 Jun 2008 15:06:21.0220 (UTC) FILETIME=[DAF72640:01C8DAC2]

Thanks for any comments,
Dominik