# ----- Main settings -----
ignore_bounce_errors_after = 2s
-timeout_frozen_after = 4s
+timeout_frozen_after = 5s
queue_run_in_order
acl_smtp_rcpt = accept
qualify_domain = test.ex
-errors_copy = *@* ${quote_local_part::abcd+$domain+$local_part}@test.ex
+errors_copy = *@* ${quote_local_part::abcd+$domain+\
+ ${if eq{$local_part}{CALLER}{xxxx}{$local_part}}}@test.ex
trusted_users = CALLER
FALLBACK=fallback_hosts = 127.0.0.1
ROUTE_DATA=V4NET.0.0.1
+RETRY1=1s
+RETRY2=2s
exim_path = EXIM_PATH
host_lookup_order = bydns
begin retry
-V4NET.0.0.1 * F,1s,1s
-V4NET.0.0.2 * F,1s,2s
+V4NET.0.0.1 * F,1s,RETRY1
+V4NET.0.0.2 * F,1s,RETRY2
* * F,1d,1s
1999-03-02 09:44:33 10HmaX-0005vi-00 ** unknown@test.ex: Unrouteable address
1999-03-02 09:44:33 10HmaY-0005vi-00 <= <> R=10HmaX-0005vi-00 U=EXIMUSER P=local S=sss
1999-03-02 09:44:33 10HmaY-0005vi-00 => CALLER <CALLER@test.ex> R=r1 T=t1
-1999-03-02 09:44:33 10HmaY-0005vi-00 => abcd+test.ex+CALLER <abcd+test.ex+CALLER@test.ex> R=r1 T=t1
+1999-03-02 09:44:33 10HmaY-0005vi-00 => abcd+test.ex+xxxx <abcd+test.ex+xxxx@test.ex> R=r1 T=t1
1999-03-02 09:44:33 10HmaY-0005vi-00 Completed
1999-03-02 09:44:33 10HmaX-0005vi-00 Completed
1999-03-02 09:44:33 10HmaZ-0005vi-00 <= "abc@def"@unknown.domain U=CALLER P=local-smtp S=sss
+++ /dev/null
-From MAILER-DAEMON Tue Mar 02 09:44:33 1999
-Received: from EXIMUSER by myhost.test.ex with local (Exim x.yz)
- id 10HmaY-0005vi-00; Tue, 2 Mar 1999 09:44:33 +0000
-X-Failed-Recipients: unknown@test.ex
-Auto-Submitted: auto-replied
-From: Mail Delivery System <Mailer-Daemon@test.ex>
-To: CALLER@test.ex
-Subject: Mail delivery failed: returning message to sender
-Message-Id: <E10HmaY-0005vi-00@myhost.test.ex>
-Date: Tue, 2 Mar 1999 09:44:33 +0000
-
-This message was created automatically by mail delivery software.
-
-A message that you sent could not be delivered to one or more of its
-recipients. This is a permanent error. The following address(es) failed:
-
- unknown@test.ex
- Unrouteable address
-
------- This is a copy of the message, including all the headers. ------
-
-Return-path: <CALLER@test.ex>
-Received: from CALLER by myhost.test.ex with local (Exim x.yz)
- (envelope-from <CALLER@test.ex>)
- id 10HmaX-0005vi-00
- for unknown@test.ex; Tue, 2 Mar 1999 09:44:33 +0000
-Message-Id: <E10HmaX-0005vi-00@myhost.test.ex>
-From: CALLER_NAME <CALLER@test.ex>
-Date: Tue, 2 Mar 1999 09:44:33 +0000
-
-
--- /dev/null
+From MAILER-DAEMON Tue Mar 02 09:44:33 1999
+Received: from EXIMUSER by myhost.test.ex with local (Exim x.yz)
+ id 10HmaY-0005vi-00; Tue, 2 Mar 1999 09:44:33 +0000
+X-Failed-Recipients: unknown@test.ex
+Auto-Submitted: auto-replied
+From: Mail Delivery System <Mailer-Daemon@test.ex>
+To: CALLER@test.ex
+Subject: Mail delivery failed: returning message to sender
+Message-Id: <E10HmaY-0005vi-00@myhost.test.ex>
+Date: Tue, 2 Mar 1999 09:44:33 +0000
+
+This message was created automatically by mail delivery software.
+
+A message that you sent could not be delivered to one or more of its
+recipients. This is a permanent error. The following address(es) failed:
+
+ unknown@test.ex
+ Unrouteable address
+
+------ This is a copy of the message, including all the headers. ------
+
+Return-path: <CALLER@test.ex>
+Received: from CALLER by myhost.test.ex with local (Exim x.yz)
+ (envelope-from <CALLER@test.ex>)
+ id 10HmaX-0005vi-00
+ for unknown@test.ex; Tue, 2 Mar 1999 09:44:33 +0000
+Message-Id: <E10HmaX-0005vi-00@myhost.test.ex>
+From: CALLER_NAME <CALLER@test.ex>
+Date: Tue, 2 Mar 1999 09:44:33 +0000
+
+
#! /usr/bin/perl -w
-# $Cambridge: exim/test/runtest,v 1.29 2007/08/29 15:06:47 ph10 Exp $
+# $Cambridge: exim/test/runtest,v 1.30 2007/08/30 13:35:29 ph10 Exp $
###############################################################################
# This is the controlling script for the "new" test suite for Exim. It should #
s/^\d+:error:/pppp:error:/;
s/:(?:\/[^\s:]+\/)?([^\/\s]+\.c):\d+:/:$1:dddd:/;
+ # There are differences in error messages between OpenSSL versions
+ s/SSL_CTX_set_cipher_list/SSL_connect/;
+
# One error test in expansions mentions base 62 or 36
s/is not a base (36|62) number/is not a base 36\/62 number/;
# timeout_frozen_after with ignore_bounce_errors_after
sudo exim -odi -f unknown@test.ex nonexist@test.ex freeze@test.ex
****
-sleep 2
+sleep 1
sudo exim -Mf $msg1
****
exim -qf
****
-sleep 2
+sleep 3
exim -q
****
no_msglog_check
****
exim -d-all+route -M $msg1
****
-millisleep 100
+millisleep 500
# unseen without disable_logging and errors_to = ""
need_ipv4
#
-server PORT_S 3
+server -t 10 PORT_S 3
220
EHLO
220 OK
QUIT
221 OK
****
-exim -odi userx@test.ex
+exim -DRETRY1=5s -odi userx@test.ex
Short message
****
exim -DFALLBACK= -odi userx@test.ex
Short message
****
sleep 3
-exim -DFALLBACK= -DROUTE_DATA=V4NET.0.0.2 -q
+exim -DFALLBACK= -DROUTE_DATA=V4NET.0.0.2 -DRETRY2=5s -q
****
exim -DFALLBACK= -DROUTE_DATA=V4NET.0.0.2 -odi userx@test.ex
Short message
From: $h_from:
Subject: $h_subject:
message_body_size=$message_body_size
-message_size=$message_size
message_id=$message_id
message_exim_id=$message_exim_id
max_received_linelength=$max_received_linelength
From: $h_from:
Subject: $h_subject:
message_body_size=$message_body_size
-message_size=$message_size
message_id=$message_id
message_exim_id=$message_exim_id
max_received_linelength=$max_received_linelength
from: $h_from:
to: $h_to:
subject: $h_subject:
-message_size=$message_size
message_body_size=$message_body_size
message_exim_id=$message_exim_id
message_linecount=$message_linecount
****
sleep 1
killdaemon
+sleep 1
#
# This daemon should flush before delaying
exim -DSERVER=server -bd -oX PORT_D
> From: Himself <himself@there.tld>
> Subject: The subject is not the object
> message_body_size=71
-> message_size=407
> message_id=10HmaX-0005vi-00
> message_exim_id=10HmaX-0005vi-00
> max_received_linelength=70
> From: Himself <himself@there.tld>
> Subject: The subject is not the object
> message_body_size=76
-> message_size=416
> message_id=10HmaY-0005vi-00
> message_exim_id=10HmaY-0005vi-00
> max_received_linelength=75
> from: A Person <a.person@a.domain.tld>
> to: First <first@test.ex>, Second <second@test.ex>
> subject: The subject is moot
-> message_size=197
> message_body_size=77
> message_exim_id=10HmaZ-0005vi-00
> message_linecount=6