summaryrefslogtreecommitdiff
path: root/test/confs
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2006-03-06 16:05:12 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2006-03-06 16:05:12 +0000
commit71fafd9530395ba813bf8669340517a12700c769 (patch)
tree8b5e25de8199cdf865f67c69337f325300af38b3 /test/confs
parent9c2819b6d70646e789978d88201c1faacfb77df5 (diff)
Add the add_header modifier for use with all ACL verbs.
Diffstat (limited to 'test/confs')
-rw-r--r--test/confs/053280
-rw-r--r--test/confs/400026
2 files changed, 93 insertions, 13 deletions
diff --git a/test/confs/0532 b/test/confs/0532
new file mode 100644
index 000000000..42d613b19
--- /dev/null
+++ b/test/confs/0532
@@ -0,0 +1,80 @@
+# Exim test configuration 0532
+
+CONNECTCOND=
+
+exim_path = EXIM_PATH
+host_lookup_order = bydns
+primary_hostname = myhost.test.ex
+rfc1413_query_timeout = 0s
+spool_directory = DIR/spool
+log_file_path = DIR/spool/log/%slog
+gecos_pattern = ""
+gecos_name = CALLER_NAME
+
+# ----- Main settings -----
+
+acl_smtp_connect = connect
+acl_smtp_mail = mail
+acl_smtp_rcpt = rcpt
+acl_smtp_predata = predata
+acl_smtp_data = data
+acl_not_smtp = notsmtp
+
+qualify_domain = test.ex
+trusted_users = CALLER
+
+
+# ----- ACL -----
+
+begin acl
+
+connect:
+ accept CONNECTCOND
+
+mail:
+ accept add_header = MAIL: one
+ senders = mailok@test.ex
+ add_header = MAIL: two\nMAIL: three
+ accept
+
+rcpt:
+ accept add_header = RCPT: one
+ add_header = DUP: duplicate
+ local_parts = rcptok
+ add_header = RCPT: two\n continued\n
+ deny add_header = RCPT: denied $local_part
+
+
+predata:
+ warn add_header = PREDATA-WARN: added with add_header
+ message = PREDATA-WARN: added with message
+ accept add_header = PREDATA: recipients are $recipients
+
+data:
+ accept add_header = DATA: one
+ add_header = DUP: duplicate
+ condition = ${if eq{$h_cond:}{accept}}
+
+notsmtp:
+ accept add_header = NOTSMTP: $recipients
+
+
+# ----- Routers -----
+
+begin routers
+
+r1:
+ driver = accept
+ transport = t1
+
+
+# ----- Transports -----
+
+begin transports
+
+t1:
+ driver = appendfile
+ file = DIR/test-mail/$local_part
+ user = CALLER
+
+# End
diff --git a/test/confs/4000 b/test/confs/4000
index cc08c71d4..1b33ff795 100644
--- a/test/confs/4000
+++ b/test/confs/4000
@@ -49,19 +49,19 @@ check_data:
check_mime:
warn decode = default
- message = X-$mime_part_count-content-type: $mime_content_type\n\
- X-$mime_part_count-filename: $mime_filename\n\
- X-$mime_part_count-charset: $mime_charset\n\
- X-$mime_part_count-boundary: $mime_boundary\n\
- X-$mime_part_count-content-disposition: $mime_content_disposition\n\
- X-$mime_part_count-content-transfer-encoding: $mime_content_transfer_encoding\n\
- X-$mime_part_count-content-id: $mime_content_id\n\
- X-$mime_part_count-content-description: $mime_content_description\n\
- X-$mime_part_count-is-multipart: $mime_is_multipart\n\
- X-$mime_part_count-is-coverletter: $mime_is_coverletter\n\
- X-$mime_part_count-is-rfc822: $mime_is_rfc822\n\
- X-$mime_part_count-decode-filename: $mime_decoded_filename\n\
- X-$mime_part_count-content-size: $mime_content_size
+ add_header = X-$mime_part_count-content-type: $mime_content_type\n\
+ X-$mime_part_count-filename: $mime_filename\n\
+ X-$mime_part_count-charset: $mime_charset\n\
+ X-$mime_part_count-boundary: $mime_boundary\n\
+ X-$mime_part_count-content-disposition: $mime_content_disposition\n\
+ X-$mime_part_count-content-transfer-encoding: $mime_content_transfer_encoding\n\
+ X-$mime_part_count-content-id: $mime_content_id\n\
+ X-$mime_part_count-content-description: $mime_content_description\n\
+ X-$mime_part_count-is-multipart: $mime_is_multipart\n\
+ X-$mime_part_count-is-coverletter: $mime_is_coverletter\n\
+ X-$mime_part_count-is-rfc822: $mime_is_rfc822\n\
+ X-$mime_part_count-decode-filename: $mime_decoded_filename\n\
+ X-$mime_part_count-content-size: $mime_content_size
accept