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):