Testsuite: cutthrough vs. callout cache
authorJeremy Harris <jgh146exb@wizmail.org>
Thu, 7 Jul 2016 20:51:13 +0000 (21:51 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Fri, 8 Jul 2016 00:13:42 +0000 (01:13 +0100)
14 files changed:
test/confs/5402
test/confs/5403 [changed from symlink to file mode: 0644]
test/confs/5404 [new symlink]
test/log/5402 [new file with mode: 0644]
test/log/5403 [deleted file]
test/log/5404 [new file with mode: 0644]
test/scripts/5400-cutthrough/5402
test/scripts/5400-cutthrough/5403
test/scripts/5400-cutthrough/5404 [new file with mode: 0644]
test/stderr/5402 [deleted file]
test/stderr/5403 [new file with mode: 0644]
test/stdout/5402
test/stdout/5403
test/stdout/5404 [new file with mode: 0644]

index e480b64b5c8a53ab9cd6670cd886f8a3c4f6c2f9..2c10380155a338ad9bd8d1a779f2b354bdcfa62b 100644 (file)
@@ -1,4 +1,4 @@
-# Exim test configuration 5400
+# Exim test configuration 5402
 
 exim_path = EXIM_PATH
 keep_environment =
@@ -10,44 +10,33 @@ gecos_pattern = ""
 gecos_name = CALLER_NAME
 tls_advertise_hosts =
 
-log_selector = +received_recipients
-
 # ----- Main settings -----
 
 domainlist local_domains = test.ex : *.test.ex
 
-acl_smtp_rcpt = ar
-
+acl_smtp_rcpt = acl_rcpt
 
-# ----- ACLs -----
+# ----- ACLs -------
 
 begin acl
 
-ar:
-  warn control =       cutthrough_delivery
-       logwrite =      rcpt for $local_part@$domain
-  warn condition =     ${if eq {verify}{$local_part}}
-       verify =        recipient/callout=use_sender
-  accept
+acl_rcpt:
+.ifdef OPT
+    warn       control = cutthrough_delivery
+.endif
+    accept     verify = recipient/callout=use_sender
+
 
 # ----- Routers -----
 
 begin routers
 
-dns:
-  driver = dnslookup
-  domains = localhost.test.ex : localhost4.test.ex : thishost.test.ex
-  self = send
-  transport = smtp
-
 all:
   driver = manualroute
   domains = ! +local_domains
-  route_list = special.com HOSTIPV4 ; * 127.0.0.1
+  route_list = * 127.0.0.1
   self = send
-  transport = ${if eq {special_tpt}{$local_part} {smtp2}{smtp}}
-  headers_remove = X-hdr-rtr
-  headers_add =    X-hdr-rtr-new: $h_X-hdr-rtr:+++
+  transport = smtp
   no_more
 
 
@@ -59,12 +48,6 @@ smtp:
   driver = smtp
   interface = HOSTIPV4
   port = PORT_S
-  headers_add =  ${if def:h_X-hdr-rtr {X-hdr-tpt-new: new} {}}
-
-smtp2:
-  driver = smtp
-  interface = HOSTIPV4
-  port = PORT_S
 
 
 # End
deleted file mode 120000 (symlink)
index 8f6811b7e1be0fb33743e246ae5c05aea2c11f3f..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-5400
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..70ec647d009219414c8193b65d14a6b4d3904b42
--- /dev/null
@@ -0,0 +1,70 @@
+# Exim test configuration 5403
+
+exim_path = EXIM_PATH
+keep_environment =
+host_lookup_order = bydns
+primary_hostname = myhost.test.ex
+spool_directory = DIR/spool
+log_file_path = DIR/spool/log/%slog
+gecos_pattern = ""
+gecos_name = CALLER_NAME
+tls_advertise_hosts =
+
+log_selector = +received_recipients
+
+# ----- Main settings -----
+
+domainlist local_domains = test.ex : *.test.ex
+
+acl_smtp_rcpt = ar
+
+
+# ----- ACLs -----
+
+begin acl
+
+ar:
+  warn control =       cutthrough_delivery
+       logwrite =      rcpt for $local_part@$domain
+  warn condition =     ${if eq {verify}{$local_part}}
+       verify =        recipient/callout=use_sender
+  accept
+
+# ----- Routers -----
+
+begin routers
+
+dns:
+  driver = dnslookup
+  domains = localhost.test.ex : localhost4.test.ex : thishost.test.ex
+  self = send
+  transport = smtp
+
+all:
+  driver = manualroute
+  domains = ! +local_domains
+  route_list = special.com HOSTIPV4 ; * 127.0.0.1
+  self = send
+  transport = ${if eq {special_tpt}{$local_part} {smtp2}{smtp}}
+  headers_remove = X-hdr-rtr
+  headers_add =    X-hdr-rtr-new: $h_X-hdr-rtr:+++
+  no_more
+
+
+# ----- Transports -----
+
+begin transports
+
+smtp:
+  driver = smtp
+  interface = HOSTIPV4
+  port = PORT_S
+  headers_add =  ${if def:h_X-hdr-rtr {X-hdr-tpt-new: new} {}}
+
+smtp2:
+  driver = smtp
+  interface = HOSTIPV4
+  port = PORT_S
+
+
+# End
diff --git a/test/confs/5404 b/test/confs/5404
new file mode 120000 (symlink)
index 0000000..8f6811b
--- /dev/null
@@ -0,0 +1 @@
+5400
\ No newline at end of file
diff --git a/test/log/5402 b/test/log/5402
new file mode 100644 (file)
index 0000000..add3b3e
--- /dev/null
@@ -0,0 +1,3 @@
+1999-03-02 09:44:33 10HmaX-0005vi-00 >> dest@domain.com R=all T=smtp H=127.0.0.1 [127.0.0.1] C="250 OK"
+1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss
+1999-03-02 09:44:33 10HmaX-0005vi-00 Completed
diff --git a/test/log/5403 b/test/log/5403
deleted file mode 100644 (file)
index 9505825..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-1999-03-02 09:44:33 rcpt for userx@domain.com
-1999-03-02 09:44:33 10HmaX-0005vi-00 >> userx@domain.com R=all T=smtp H=127.0.0.1 [127.0.0.1] C="250 OK"
-1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss for userx@domain.com
-1999-03-02 09:44:33 10HmaX-0005vi-00 Completed
diff --git a/test/log/5404 b/test/log/5404
new file mode 100644 (file)
index 0000000..9505825
--- /dev/null
@@ -0,0 +1,4 @@
+1999-03-02 09:44:33 rcpt for userx@domain.com
+1999-03-02 09:44:33 10HmaX-0005vi-00 >> userx@domain.com R=all T=smtp H=127.0.0.1 [127.0.0.1] C="250 OK"
+1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss for userx@domain.com
+1999-03-02 09:44:33 10HmaX-0005vi-00 Completed
index 3e6f3189ee6594958f00716d2e1d1296878a8a6e..1113c6d32836d8980426ecccb5a40c23016eb31e 100644 (file)
@@ -1,42 +1,49 @@
-# cutthrough_delivery and -bhc
+# cutthrough_delivery vs. recipient-verify cache entry
 need_ipv4
-munge loopback
-no_msglog_check
 #
-# Despite config for cutthrough should not make onward conn
-server -t -2 PORT_S
+# Set up callout cache
+#
+server PORT_S
+220 ESMTP
+EHLO
+250 OK
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+QUIT
+250 OK
 ****
-exim -bhc 1.2.3.4
+exim -bs -odf
 EHLO myhost.test.ex
 MAIL FROM:<CALLER@myhost.test.ex>
-RCPT TO:<plain@domain.com>
-DATA
-
-.
+RCPT TO:<dest@domain.com>
 QUIT
 ****
 #
-# Onward conn made for r-verify but cleared before DATA
+# Send message with cutthrough
+#
 server PORT_S
-220 server ready
+220 ESMTP
 EHLO
 250 OK
-MAIL
-250 OK
-RCPT
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
 250 OK
 QUIT
-220 OK
-*eof
+250 OK
 ****
-exim -bhc 1.2.3.4
+exim -DOPT=CUTTHROUGH -bs -odf
 EHLO myhost.test.ex
 MAIL FROM:<CALLER@myhost.test.ex>
-RCPT TO:<verify@domain.com>
+RCPT TO:<dest@domain.com>
 DATA
 
 .
 QUIT
 ****
-#
-# End
index dbe7ef3c54b47a1dd5f3f5e46656547aa5b3f421..3e6f3189ee6594958f00716d2e1d1296878a8a6e 100644 (file)
@@ -1,30 +1,42 @@
-# cutthrough_delivery with MAIL SIZE=
+# cutthrough_delivery and -bhc
 need_ipv4
 munge loopback
+no_msglog_check
 #
-server PORT_S
-220 ESMTP
-EHLO
-250-OK
-250 SIZE 65536
-MAIL FROM:<fred@myhost.test.ex> SIZE=1123
-250 Sender OK
-RCPT TO:
-250 Recipient OK
+# Despite config for cutthrough should not make onward conn
+server -t -2 PORT_S
+****
+exim -bhc 1.2.3.4
+EHLO myhost.test.ex
+MAIL FROM:<CALLER@myhost.test.ex>
+RCPT TO:<plain@domain.com>
 DATA
-354 Send data
+
 .
-250 OK
 QUIT
+****
+#
+# Onward conn made for r-verify but cleared before DATA
+server PORT_S
+220 server ready
+EHLO
+250 OK
+MAIL
 250 OK
+RCPT
+250 OK
+QUIT
+220 OK
+*eof
 ****
-exim -bs
+exim -bhc 1.2.3.4
 EHLO myhost.test.ex
-MAIL FROM:<fred@myhost.test.ex> SIZE=99
-RCPT TO:<userx@domain.com>
+MAIL FROM:<CALLER@myhost.test.ex>
+RCPT TO:<verify@domain.com>
 DATA
 
 .
 QUIT
 ****
+#
 # End
diff --git a/test/scripts/5400-cutthrough/5404 b/test/scripts/5400-cutthrough/5404
new file mode 100644 (file)
index 0000000..dbe7ef3
--- /dev/null
@@ -0,0 +1,30 @@
+# cutthrough_delivery with MAIL SIZE=
+need_ipv4
+munge loopback
+#
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250 SIZE 65536
+MAIL FROM:<fred@myhost.test.ex> SIZE=1123
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -bs
+EHLO myhost.test.ex
+MAIL FROM:<fred@myhost.test.ex> SIZE=99
+RCPT TO:<userx@domain.com>
+DATA
+
+.
+QUIT
+****
+# End
diff --git a/test/stderr/5402 b/test/stderr/5402
deleted file mode 100644 (file)
index 49d3574..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
->>> host in hosts_connection_nolog? no (option unset)
->>> host in host_lookup? no (option unset)
->>> host in host_reject_connection? no (option unset)
->>> host in sender_unqualified_hosts? no (option unset)
->>> host in recipient_unqualified_hosts? no (option unset)
->>> host in helo_verify_hosts? no (option unset)
->>> host in helo_try_verify_hosts? no (option unset)
->>> host in helo_accept_junk_hosts? no (option unset)
->>> myhost.test.ex in helo_lookup_domains? yes (matched "@")
->>> looking up host name for 1.2.3.4
-LOG: no host name found for IP address 1.2.3.4
->>> host in dsn_advertise_hosts? no (option unset)
->>> host in pipelining_advertise_hosts? yes (matched "*")
->>> using ACL "ar"
->>> processing "warn"
->>> check control = cutthrough_delivery
->>> check logwrite = rcpt for $local_part@$domain
->>>                = rcpt for plain@domain.com
-LOG: rcpt for plain@domain.com
->>> warn: condition test succeeded in ACL "ar"
->>> processing "warn"
->>> check condition = ${if eq {verify}{$local_part}}
->>>                 = 
->>> warn: condition test failed in ACL "ar"
->>> processing "accept"
->>> accept: condition test succeeded in ACL "ar"
->>> end of ACL "ar": ACCEPT
-LOG: 10HmaX-0005vi-00 <= CALLER@myhost.test.ex H=(myhost.test.ex) [1.2.3.4] P=esmtp S=sss for plain@domain.com
->>> host in hosts_connection_nolog? no (option unset)
->>> host in host_lookup? no (option unset)
->>> host in host_reject_connection? no (option unset)
->>> host in sender_unqualified_hosts? no (option unset)
->>> host in recipient_unqualified_hosts? no (option unset)
->>> host in helo_verify_hosts? no (option unset)
->>> host in helo_try_verify_hosts? no (option unset)
->>> host in helo_accept_junk_hosts? no (option unset)
->>> myhost.test.ex in helo_lookup_domains? yes (matched "@")
->>> looking up host name for 1.2.3.4
-LOG: no host name found for IP address 1.2.3.4
->>> host in dsn_advertise_hosts? no (option unset)
->>> host in pipelining_advertise_hosts? yes (matched "*")
->>> using ACL "ar"
->>> processing "warn"
->>> check control = cutthrough_delivery
->>> check logwrite = rcpt for $local_part@$domain
->>>                = rcpt for verify@domain.com
-LOG: rcpt for verify@domain.com
->>> warn: condition test succeeded in ACL "ar"
->>> processing "warn"
->>> check condition = ${if eq {verify}{$local_part}}
->>>                 = true
->>> check verify = recipient/callout=use_sender
->>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
->>> routing verify@domain.com
->>> domain.com in "localhost.test.ex : localhost4.test.ex : thishost.test.ex"? no (end of list)
->>> domain.com in "test.ex : *.test.ex"? no (end of list)
->>> domain.com in "! +local_domains"? yes (end of list)
->>> calling all router
->>> domain.com in "special.com"? no (end of list)
->>> domain.com in "*"? yes (matched "*")
->>> local host found for non-MX address
->>> fully qualified name = 127.0.0.1
-MUNGED: ::1 will be omitted in what follows
->>> get[host|ipnode]byname[2] looked up these IP addresses:
->>>   name=127.0.0.1 address=127.0.0.1
->>> routed by all router
->>> Attempting full verification using callout
->>> callout cache: no domain record found for domain.com
->>> callout cache: no address record found for verify@domain.com/<CALLER@myhost.test.ex>
->>> interface=ip4.ip4.ip4.ip4 port=1224
->>> Connecting to 127.0.0.1 [127.0.0.1]:1224 from ip4.ip4.ip4.ip4 ... connected
->>>   SMTP<< 220 server ready
->>> 127.0.0.1 in hosts_avoid_esmtp? no (option unset)
->>>   SMTP>> EHLO myhost.test.ex
->>>   SMTP<< 250 OK
->>> 127.0.0.1 in hosts_require_auth? no (option unset)
->>>   SMTP>> MAIL FROM:<CALLER@myhost.test.ex>
->>>   SMTP<< 250 OK
->>>   SMTP>> RCPT TO:<verify@domain.com>
->>>   SMTP<< 250 OK
->>> wrote callout cache domain record:
->>>   result=1 postmaster=0 random=0
->>> wrote positive callout cache address record
->>> ----------- end verify ------------
->>> warn: condition test succeeded in ACL "ar"
->>> processing "accept"
->>> accept: condition test succeeded in ACL "ar"
->>> end of ACL "ar": ACCEPT
->>>   SMTP>> QUIT
->>> ----------- cutthrough shutdown (host-checking mode) ------------
-LOG: 10HmaY-0005vi-00 <= CALLER@myhost.test.ex H=(myhost.test.ex) [1.2.3.4] P=esmtp S=sss for verify@domain.com
diff --git a/test/stderr/5403 b/test/stderr/5403
new file mode 100644 (file)
index 0000000..49d3574
--- /dev/null
@@ -0,0 +1,91 @@
+>>> host in hosts_connection_nolog? no (option unset)
+>>> host in host_lookup? no (option unset)
+>>> host in host_reject_connection? no (option unset)
+>>> host in sender_unqualified_hosts? no (option unset)
+>>> host in recipient_unqualified_hosts? no (option unset)
+>>> host in helo_verify_hosts? no (option unset)
+>>> host in helo_try_verify_hosts? no (option unset)
+>>> host in helo_accept_junk_hosts? no (option unset)
+>>> myhost.test.ex in helo_lookup_domains? yes (matched "@")
+>>> looking up host name for 1.2.3.4
+LOG: no host name found for IP address 1.2.3.4
+>>> host in dsn_advertise_hosts? no (option unset)
+>>> host in pipelining_advertise_hosts? yes (matched "*")
+>>> using ACL "ar"
+>>> processing "warn"
+>>> check control = cutthrough_delivery
+>>> check logwrite = rcpt for $local_part@$domain
+>>>                = rcpt for plain@domain.com
+LOG: rcpt for plain@domain.com
+>>> warn: condition test succeeded in ACL "ar"
+>>> processing "warn"
+>>> check condition = ${if eq {verify}{$local_part}}
+>>>                 = 
+>>> warn: condition test failed in ACL "ar"
+>>> processing "accept"
+>>> accept: condition test succeeded in ACL "ar"
+>>> end of ACL "ar": ACCEPT
+LOG: 10HmaX-0005vi-00 <= CALLER@myhost.test.ex H=(myhost.test.ex) [1.2.3.4] P=esmtp S=sss for plain@domain.com
+>>> host in hosts_connection_nolog? no (option unset)
+>>> host in host_lookup? no (option unset)
+>>> host in host_reject_connection? no (option unset)
+>>> host in sender_unqualified_hosts? no (option unset)
+>>> host in recipient_unqualified_hosts? no (option unset)
+>>> host in helo_verify_hosts? no (option unset)
+>>> host in helo_try_verify_hosts? no (option unset)
+>>> host in helo_accept_junk_hosts? no (option unset)
+>>> myhost.test.ex in helo_lookup_domains? yes (matched "@")
+>>> looking up host name for 1.2.3.4
+LOG: no host name found for IP address 1.2.3.4
+>>> host in dsn_advertise_hosts? no (option unset)
+>>> host in pipelining_advertise_hosts? yes (matched "*")
+>>> using ACL "ar"
+>>> processing "warn"
+>>> check control = cutthrough_delivery
+>>> check logwrite = rcpt for $local_part@$domain
+>>>                = rcpt for verify@domain.com
+LOG: rcpt for verify@domain.com
+>>> warn: condition test succeeded in ACL "ar"
+>>> processing "warn"
+>>> check condition = ${if eq {verify}{$local_part}}
+>>>                 = true
+>>> check verify = recipient/callout=use_sender
+>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+>>> routing verify@domain.com
+>>> domain.com in "localhost.test.ex : localhost4.test.ex : thishost.test.ex"? no (end of list)
+>>> domain.com in "test.ex : *.test.ex"? no (end of list)
+>>> domain.com in "! +local_domains"? yes (end of list)
+>>> calling all router
+>>> domain.com in "special.com"? no (end of list)
+>>> domain.com in "*"? yes (matched "*")
+>>> local host found for non-MX address
+>>> fully qualified name = 127.0.0.1
+MUNGED: ::1 will be omitted in what follows
+>>> get[host|ipnode]byname[2] looked up these IP addresses:
+>>>   name=127.0.0.1 address=127.0.0.1
+>>> routed by all router
+>>> Attempting full verification using callout
+>>> callout cache: no domain record found for domain.com
+>>> callout cache: no address record found for verify@domain.com/<CALLER@myhost.test.ex>
+>>> interface=ip4.ip4.ip4.ip4 port=1224
+>>> Connecting to 127.0.0.1 [127.0.0.1]:1224 from ip4.ip4.ip4.ip4 ... connected
+>>>   SMTP<< 220 server ready
+>>> 127.0.0.1 in hosts_avoid_esmtp? no (option unset)
+>>>   SMTP>> EHLO myhost.test.ex
+>>>   SMTP<< 250 OK
+>>> 127.0.0.1 in hosts_require_auth? no (option unset)
+>>>   SMTP>> MAIL FROM:<CALLER@myhost.test.ex>
+>>>   SMTP<< 250 OK
+>>>   SMTP>> RCPT TO:<verify@domain.com>
+>>>   SMTP<< 250 OK
+>>> wrote callout cache domain record:
+>>>   result=1 postmaster=0 random=0
+>>> wrote positive callout cache address record
+>>> ----------- end verify ------------
+>>> warn: condition test succeeded in ACL "ar"
+>>> processing "accept"
+>>> accept: condition test succeeded in ACL "ar"
+>>> end of ACL "ar": ACCEPT
+>>>   SMTP>> QUIT
+>>> ----------- cutthrough shutdown (host-checking mode) ------------
+LOG: 10HmaY-0005vi-00 <= CALLER@myhost.test.ex H=(myhost.test.ex) [1.2.3.4] P=esmtp S=sss for verify@domain.com
index c0548bae7cfbc9f6a18b12b683609145fec091a6..1aa55964edd396ef67622f647f53b7b286ab0adc 100644 (file)
@@ -1,29 +1,14 @@
-
-**** SMTP testing session as if from host 1.2.3.4
-**** but without any ident (RFC 1413) callback.
-**** This is not for real!
-
 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000\r
-250-myhost.test.ex Hello myhost.test.ex [1.2.3.4]\r
+250-myhost.test.ex Hello CALLER at myhost.test.ex\r
 250-SIZE 52428800\r
 250-8BITMIME\r
 250-PIPELINING\r
 250 HELP\r
 250 OK\r
 250 Accepted\r
-354 Enter message, ending with "." on a line by itself\r
-250 OK id=10HmaX-0005vi-00\r
-
-**** SMTP testing: that is not a real message id!
-
 221 myhost.test.ex closing connection\r
-
-**** SMTP testing session as if from host 1.2.3.4
-**** but without any ident (RFC 1413) callback.
-**** This is not for real!
-
 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000\r
-250-myhost.test.ex Hello myhost.test.ex [1.2.3.4]\r
+250-myhost.test.ex Hello CALLER at myhost.test.ex\r
 250-SIZE 52428800\r
 250-8BITMIME\r
 250-PIPELINING\r
 250 OK\r
 250 Accepted\r
 354 Enter message, ending with "." on a line by itself\r
-250 OK id=10HmaY-0005vi-00\r
-
-**** SMTP testing: that is not a real message id!
-
+250 OK id=10HmaX-0005vi-00\r
 221 myhost.test.ex closing connection\r
 
 ******** SERVER ********
 Listening on port 1224 ... 
-Server timed out
-Listening on port 1224 ... 
 Connection request from [ip4.ip4.ip4.ip4]
-220 server ready
+220 ESMTP
 EHLO myhost.test.ex
 250 OK
 MAIL FROM:<CALLER@myhost.test.ex>
+250 Sender OK
+RCPT TO:<dest@domain.com>
+250 Recipient OK
+QUIT
+250 OK
+End of script
+Listening on port 1224 ... 
+Connection request from [ip4.ip4.ip4.ip4]
+220 ESMTP
+EHLO myhost.test.ex
 250 OK
-RCPT TO:<verify@domain.com>
+MAIL FROM:<CALLER@myhost.test.ex>
+250 Sender OK
+RCPT TO:<dest@domain.com>
+250 Recipient OK
+DATA
+354 Send data
+Received: from CALLER (helo=myhost.test.ex)
+       by myhost.test.ex with local-esmtp (Exim x.yz)
+       (envelope-from <CALLER@myhost.test.ex>)
+       id 10HmaX-0005vi-00
+       for dest@domain.com; Tue, 2 Mar 1999 09:44:33 +0000
+Message-Id: <E10HmaX-0005vi-00@myhost.test.ex>
+From: CALLER_NAME <CALLER@myhost.test.ex>
+Date: Tue, 2 Mar 1999 09:44:33 +0000
+
+.
 250 OK
 QUIT
-220 OK
-Expected EOF read from client
+250 OK
 End of script
index aa2bdcaab7ee880a0acc07e236fae6df2806cd69..c0548bae7cfbc9f6a18b12b683609145fec091a6 100644 (file)
@@ -1,5 +1,10 @@
+
+**** SMTP testing session as if from host 1.2.3.4
+**** but without any ident (RFC 1413) callback.
+**** This is not for real!
+
 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000\r
-250-myhost.test.ex Hello CALLER at myhost.test.ex\r
+250-myhost.test.ex Hello myhost.test.ex [1.2.3.4]\r
 250-SIZE 52428800\r
 250-8BITMIME\r
 250-PIPELINING\r
 250 Accepted\r
 354 Enter message, ending with "." on a line by itself\r
 250 OK id=10HmaX-0005vi-00\r
+
+**** SMTP testing: that is not a real message id!
+
+221 myhost.test.ex closing connection\r
+
+**** SMTP testing session as if from host 1.2.3.4
+**** but without any ident (RFC 1413) callback.
+**** This is not for real!
+
+220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000\r
+250-myhost.test.ex Hello myhost.test.ex [1.2.3.4]\r
+250-SIZE 52428800\r
+250-8BITMIME\r
+250-PIPELINING\r
+250 HELP\r
+250 OK\r
+250 Accepted\r
+354 Enter message, ending with "." on a line by itself\r
+250 OK id=10HmaY-0005vi-00\r
+
+**** SMTP testing: that is not a real message id!
+
 221 myhost.test.ex closing connection\r
 
 ******** SERVER ********
 Listening on port 1224 ... 
+Server timed out
+Listening on port 1224 ... 
 Connection request from [ip4.ip4.ip4.ip4]
-220 ESMTP
+220 server ready
 EHLO myhost.test.ex
-250-OK
-250 SIZE 65536
-MAIL FROM:<fred@myhost.test.ex> SIZE=ssss
-250 Sender OK
-RCPT TO:<userx@domain.com>
-250 Recipient OK
-DATA
-354 Send data
-Received: from CALLER (helo=myhost.test.ex)
-       by myhost.test.ex with local-esmtp (Exim x.yz)
-       (envelope-from <CALLER@myhost.test.ex>)
-       id 10HmaX-0005vi-00
-       for userx@domain.com; Tue, 2 Mar 1999 09:44:33 +0000
-Message-Id: <E10HmaX-0005vi-00@myhost.test.ex>
-From: CALLER_NAME <CALLER@myhost.test.ex>
-Date: Tue, 2 Mar 1999 09:44:33 +0000
-X-hdr-rtr-new: +++
-
-.
 250 OK
-QUIT
+MAIL FROM:<CALLER@myhost.test.ex>
 250 OK
+RCPT TO:<verify@domain.com>
+250 OK
+QUIT
+220 OK
+Expected EOF read from client
 End of script
diff --git a/test/stdout/5404 b/test/stdout/5404
new file mode 100644 (file)
index 0000000..aa2bdca
--- /dev/null
@@ -0,0 +1,40 @@
+220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000\r
+250-myhost.test.ex Hello CALLER at myhost.test.ex\r
+250-SIZE 52428800\r
+250-8BITMIME\r
+250-PIPELINING\r
+250 HELP\r
+250 OK\r
+250 Accepted\r
+354 Enter message, ending with "." on a line by itself\r
+250 OK id=10HmaX-0005vi-00\r
+221 myhost.test.ex closing connection\r
+
+******** SERVER ********
+Listening on port 1224 ... 
+Connection request from [ip4.ip4.ip4.ip4]
+220 ESMTP
+EHLO myhost.test.ex
+250-OK
+250 SIZE 65536
+MAIL FROM:<fred@myhost.test.ex> SIZE=ssss
+250 Sender OK
+RCPT TO:<userx@domain.com>
+250 Recipient OK
+DATA
+354 Send data
+Received: from CALLER (helo=myhost.test.ex)
+       by myhost.test.ex with local-esmtp (Exim x.yz)
+       (envelope-from <CALLER@myhost.test.ex>)
+       id 10HmaX-0005vi-00
+       for userx@domain.com; Tue, 2 Mar 1999 09:44:33 +0000
+Message-Id: <E10HmaX-0005vi-00@myhost.test.ex>
+From: CALLER_NAME <CALLER@myhost.test.ex>
+Date: Tue, 2 Mar 1999 09:44:33 +0000
+X-hdr-rtr-new: +++
+
+.
+250 OK
+QUIT
+250 OK
+End of script