summaryrefslogtreecommitdiff
path: root/test/confs/0014
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2006-02-07 10:34:24 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2006-02-07 10:34:24 +0000
commitafda344b580b54a4513569720aec3260cd5ba546 (patch)
tree6318744c7d3f502ee72bcd20bab0f612c5dceacf /test/confs/0014
parent9ba4af2b76958e076a0c002e53ead87ed7a47a68 (diff)
More new test committing.
Diffstat (limited to 'test/confs/0014')
-rw-r--r--test/confs/0014106
1 files changed, 106 insertions, 0 deletions
diff --git a/test/confs/0014 b/test/confs/0014
new file mode 100644
index 000000000..c7dbdb804
--- /dev/null
+++ b/test/confs/0014
@@ -0,0 +1,106 @@
+# Exim test configuration 0014
+
+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 -----
+
+domainlist local_domains = test.ex : myhost.test.ex
+domainlist relay_domains = test.ex
+
+acl_smtp_rcpt = check_recipient
+
+trusted_users = CALLER
+
+
+# ----- ACL -----
+
+begin acl
+
+check_recipient:
+ accept hosts = :
+ require verify = sender
+ accept domains = +local_domains
+ accept domains = +relay_domains
+ deny message = relay not permitted
+
+
+# ----- Rewrite -----
+
+begin rewrite
+
+*@*.one.two $1@one.two
+abcd@^qu aaa@bbb
+*pqr@^qu(.*) 1=$1@zz$2
+hhhh@h.h.h.h "${if eq {$h_to:}{x@y}{yes}{no}}@j.j.j"
+
+########################################################
+# Fancy example of a supposed outgoing gateway rewrite #
+########################################################
+
+# No rewrite unless domain is *.plc.example
+
+^(?>.*)(?<!\.plc\.example) *
+
+# Handle root specially except envelope to
+
+root@*.plc.example "admin@plc.example (root@$1)" whFq
+
+# Failure in envelope sender is bad - should fail to verify
+
+*@*.plc.example ${lookup{$local_part@$2}lsearch\
+ {DIR/aux-fixed/0014.usernames}\
+ {$value}{"$1@$2.plc.example-is-not-known"}}@plc.example Fq
+
+# Use envelope for failing header sender
+
+*@*.plc.example "${lookup{$local_part@$2}lsearch\
+ {DIR/aux-fixed/0014.usernames}{$value@plc.example}\
+ {$sender_address}}" fsrq
+
+# Other failures => `unknown'
+*@*.plc.example "${lookup{$local_part@$2}lsearch\
+ {DIR/aux-fixed/0014.usernames}{$value}{unknown}}@plc.example"
+
+
+# ----- Routers -----
+
+begin routers
+
+fail:
+ driver = manualroute
+ domains = *.plc.example
+ fail_verify
+ route_list = *
+ verify_only
+
+fail_remote_domains:
+ driver = redirect
+ domains = ! +local_domains
+ allow_fail
+ data = :fail: Unrouteable mail domain "$domain"
+
+userx:
+ driver = accept
+ local_parts = userx
+ retry_use_local_part
+ transport = appendfile
+
+
+# ----- Transports -----
+
+begin transports
+
+appendfile:
+ driver = appendfile
+ file = DIR/test-mail/$local_part
+ message_suffix =
+ user = CALLER
+
+# End