More new test committing.
[exim.git] / test / confs / 0038
diff --git a/test/confs/0038 b/test/confs/0038
new file mode 100644 (file)
index 0000000..497623a
--- /dev/null
@@ -0,0 +1,42 @@
+# Exim test configuration 0038
+
+RRATELIMIT=0/1h/strict
+DRATELIMIT=0/1h/per_byte/strict
+
+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_rcpt = check_rcpt
+acl_smtp_data = check_data
+qualify_domain = test.ex
+
+
+# ----- ACL -----
+
+begin acl
+
+check_rcpt:
+    warn  ratelimit = RRATELIMIT
+          log_message = RCPT: \
+                        sender_rate=$sender_rate \
+                        sender_rate_limit=$sender_rate_limit \
+                        sender_rate_period=$sender_rate_period
+    accept
+
+check_data:
+    warn  ratelimit = DRATELIMIT
+          log_message = DATA: \
+                        sender_rate=$sender_rate \
+                        sender_rate_limit=$sender_rate_limit \
+                        sender_rate_period=$sender_rate_period
+    deny
+
+# End