Now, to prevent double logging, I've set up the filter like this:

# Exim filter

if error_message
then
   finish
endif

logfile /var/log/exim4-prod/mainlog

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

   unseen deliver [EMAIL PROTECTED] errors_to [EMAIL PROTECTED]
endif

This seems almost fine. However, yesterday I encountered a very 
strange error (next-to-last line): 

2008-06-30 16:21:33 1KDKG5-000205-68 <= [EMAIL PROTECTED] [4.5.6.7] for [EMAIL 
PROTECTED]
2008-06-30 16:21:34 1KDKG5-000205-68 unseen deliver: [EMAIL PROTECTED] 
errors_to [EMAIL PROTECTED]
2008-06-30 16:21:34 1KDKG5-000205-68 => [EMAIL PROTECTED]
2008-06-30 16:21:34 1KDKG5-000205-68 mailserver-2.outside.com [9.10.11.12] 
Connection timed out** [EMAIL PROTECTED] F=<[EMAIL PROTECTED]> P=<[EMAIL 
PROTECTED]> R=dnslookup T=remote_smtp: retry time not reached for any host 
after a long failure period
2008-06-30 16:21:34 1KDKG5-000205-68 Completed QT=1s

Any ideas what this means? Could this mean that in some retry file
(/var/spool/exim4/db/retry ?) it says that the domain outside.com 
(or the mail server mailserver-2.outside.com) has been unreachable 
for more than the maximum retry time (retry configuration: 
F,4h,15m; G,16h,1h,1.5; F,4d,6h) -- i.e. about 5 days? My tests 
with domain outside.com started on June 25th, six days ago.

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