diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0600 | 69 | ||||
-rw-r--r-- | test/log/0600 | 18 | ||||
-rw-r--r-- | test/mail/0600.CALLER | 45 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0600 | 32 | ||||
-rw-r--r-- | test/stdout/0600 | 12 |
5 files changed, 176 insertions, 0 deletions
diff --git a/test/confs/0600 b/test/confs/0600 new file mode 100644 index 000000000..0347e4c60 --- /dev/null +++ b/test/confs/0600 @@ -0,0 +1,69 @@ +# Exim test configuration 0005 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ + +acl_smtp_rcpt = accept +acl_smtp_data = check_data + +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +check_data: + accept logwrite = \ + x-test-header-good1: ${utf8clean:$h_x-test-header-good1:} + logwrite = \ + x-test-header-good2: ${utf8clean:$h_x-test-header-good2:} + logwrite = \ + x-test-header-too-short: ${utf8clean:$h_x-test-header-too-short:} + logwrite = \ + x-test-header-too-long: ${utf8clean:$h_x-test-header-too-long:} + logwrite = \ + x-test-header-too-big: ${utf8clean:$h_x-test-header-too-big:} + + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +localuser: + driver = accept + check_local_user + transport = local_delivery + headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + headers_add = "X-body-linecount: $body_linecount\n\ + X-message-linecount: $message_linecount\n\ + X-received-count: $received_count" + return_path_add + +# End diff --git a/test/log/0600 b/test/log/0600 new file mode 100644 index 000000000..8fc8cfc36 --- /dev/null +++ b/test/log/0600 @@ -0,0 +1,18 @@ +1999-03-02 09:44:33 10HmaX-0005vi-00 x-test-header-good1: 1234567890qwertzuiopasdfghjklyxcvbnm,.-QWERTZUIOP+*ASDFGHJKL#'YXCVBNM,.-;:_ +1999-03-02 09:44:33 10HmaX-0005vi-00 x-test-header-good2: \303\237\303\274\303\266\303\244\342\202\254\303\234\303\226\303\204\302\264\340\244\221\340\244\225\340\244\234\341\220\201\341\221\214\341\221\225\360\253\235\206\360\253\237\230 +1999-03-02 09:44:33 10HmaX-0005vi-00 x-test-header-too-short: ?.?.?.\303\244-?.-\303\234.?..?.-?.-?..-?.-?.-?.-?.-?..-?..?. +1999-03-02 09:44:33 10HmaX-0005vi-00 x-test-header-too-long: ?????-\303\244-?????--\303\226-\303\204-\302\264-\340\244\221-\340\244\225-\340\244\234-\341\220\201-\341\221\214-\341\221\225-?????\360\253\237\206 +1999-03-02 09:44:33 10HmaX-0005vi-00 x-test-header-too-big: ?-----\363\200\200\200 +1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@the.local.host.name U=CALLER P=local-smtp S=sss +1999-03-02 09:44:33 10HmaX-0005vi-00 => CALLER <CALLER@the.local.host.name> R=localuser T=local_delivery +1999-03-02 09:44:33 10HmaX-0005vi-00 Completed +1999-03-02 09:44:33 10HmaY-0005vi-00 x-test-header-good1: +1999-03-02 09:44:33 10HmaY-0005vi-00 x-test-header-good2: +1999-03-02 09:44:33 10HmaY-0005vi-00 x-test-header-too-short: +1999-03-02 09:44:33 10HmaY-0005vi-00 x-test-header-too-long: +1999-03-02 09:44:33 10HmaY-0005vi-00 x-test-header-too-big: +1999-03-02 09:44:33 10HmaY-0005vi-00 <= CALLER@the.local.host.name U=CALLER P=local-smtp S=sss +1999-03-02 09:44:33 10HmaY-0005vi-00 => CALLER <CALLER@the.local.host.name> R=localuser T=local_delivery +1999-03-02 09:44:33 10HmaY-0005vi-00 Completed +1999-03-02 09:44:33 Start queue run: pid=pppp +1999-03-02 09:44:33 End queue run: pid=pppp diff --git a/test/mail/0600.CALLER b/test/mail/0600.CALLER new file mode 100644 index 000000000..e9a50054e --- /dev/null +++ b/test/mail/0600.CALLER @@ -0,0 +1,45 @@ +From CALLER@the.local.host.name Tue Mar 02 09:44:33 1999 +Return-path: <CALLER@the.local.host.name> +Envelope-to: CALLER@the.local.host.name +Delivery-date: Tue, 2 Mar 1999 09:44:33 +0000 +Received: from CALLER by the.local.host.name with local-smtp (Exim x.yz) + (envelope-from <CALLER@the.local.host.name>) + id 10HmaX-0005vi-00 + for CALLER@the.local.host.name; Tue, 2 Mar 1999 09:44:33 +0000 +x-test-header-good1: 1234567890qwertzuiopasdfghjklyxcvbnm,.-QWERTZUIOP+*ASDFGHJKL#'YXCVBNM,.-;:_ +x-test-header-good2: ßüöä€ÜÖÄ´ऑकजᐁᑌᑕ𫝆𫟘 +x-test-header-too-short: ...ä-.-Ü....-.-..-.-.-.-.-..-... +x-test-header-too-long: -ä---Ö-Ä-´-ऑ-क-ज-ᐁ-ᑌ-ᑕ-𫟆 +x-test-header-too-big: ----- +Subject: This is a test message. +Message-Id: <E10HmaX-0005vi-00@the.local.host.name> +From: CALLER@the.local.host.name +Date: Tue, 2 Mar 1999 09:44:33 +0000 +X-local-user: uid=CALLER_UID gid=CALLER_GID +X-body-linecount: 3 +X-message-linecount: 16 +X-received-count: 1 + +This is a test message. +It has three lines. +This is the last line. + +From CALLER@the.local.host.name Tue Mar 02 09:44:33 1999 +Return-path: <CALLER@the.local.host.name> +Envelope-to: CALLER@the.local.host.name +Delivery-date: Tue, 2 Mar 1999 09:44:33 +0000 +Received: from CALLER by the.local.host.name with local-smtp (Exim x.yz) + (envelope-from <CALLER@the.local.host.name>) + id 10HmaY-0005vi-00 + for CALLER@the.local.host.name; Tue, 2 Mar 1999 09:44:33 +0000 +Subject: second +Message-Id: <E10HmaY-0005vi-00@the.local.host.name> +From: CALLER@the.local.host.name +Date: Tue, 2 Mar 1999 09:44:33 +0000 +X-local-user: uid=CALLER_UID gid=CALLER_GID +X-body-linecount: 1 +X-message-linecount: 9 +X-received-count: 1 + +This is a second test message. + diff --git a/test/scripts/0000-Basic/0600 b/test/scripts/0000-Basic/0600 new file mode 100644 index 000000000..9d5e67b5b --- /dev/null +++ b/test/scripts/0000-Basic/0600 @@ -0,0 +1,32 @@ +# ${utf8clean:string} +# +# -bs to simple local delivery +exim -bs -odi +mail from:CALLER@HOSTNAME +rcpt to:CALLER@HOSTNAME +data +x-test-header-good1: 1234567890qwertzuiopasdfghjklyxcvbnm,.-QWERTZUIOP+*ASDFGHJKL#'YXCVBNM,.-;:_ +x-test-header-good2: ßüöä€ÜÖÄ´ऑकजᐁᑌᑕ𫝆𫟘 +x-test-header-too-short: ...ä-.-Ü....-.-..-.-.-.-.-..-... +x-test-header-too-long: -ä---Ö-Ä-´-ऑ-क-ज-ᐁ-ᑌ-ᑕ-𫟆 +x-test-header-too-big: ----- +Subject: This is a test message. + +This is a test message. +It has three lines. +This is the last line. +. +quit +**** +exim -bs -odi +mail from:CALLER@HOSTNAME +rcpt to:CALLER@HOSTNAME +data +Subject: second + +This is a second test message. +. +quit +**** +exim -q +**** diff --git a/test/stdout/0600 b/test/stdout/0600 new file mode 100644 index 000000000..2b1941f58 --- /dev/null +++ b/test/stdout/0600 @@ -0,0 +1,12 @@ +220 the.local.host.name ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmaX-0005vi-00
+221 the.local.host.name closing connection
+220 the.local.host.name ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmaY-0005vi-00
+221 the.local.host.name closing connection
|