-# Exim test configuration 0568
-# Recipient callout with AUTH
+# Exim test configuration 0568: ACL regex=
exim_path = EXIM_PATH
host_lookup_order = bydns
gecos_pattern = ""
gecos_name = CALLER_NAME
+
# ----- Main settings -----
acl_smtp_rcpt = check_rcpt
+acl_smtp_data = check_data
+acl_not_smtp = check_data
+acl_smtp_mime = check_mime
-queue_only
+# ----- ACL -----
-# ----- Authentication -----
+begin acl
-begin authenticators
+check_rcpt:
+ accept
-plain:
- driver = plaintext
- public_name = PLAIN
- client_send = ^userx^secret
- server_advertise_condition = yes
- server_prompts = :
- server_condition = yes
- server_set_id = $auth2
+check_data:
+ warn regex = \N(THIS\s((\w+)\s)?REGEX)\N
+ message = X-Regex: Regex matched <$regex1> <$regex3>
+ warn condition = ${if !eq{$h_fakereject:}{}}
+ control = fakereject
-# ----- ACLs -----
-
-begin acl
-
-check_rcpt:
- accept verify = recipient/callout
+ warn condition = ${if !eq{$h_fakedefer:}{}}
+ control = fakedefer
+ accept
# ----- Routers -----
r1:
driver = accept
- transport = ${if eq{force}{$domain} {t2}{t1}}
-
+ transport = t1
# ----- Transports -----
begin transports
t1:
- driver = smtp
- hosts = 127.0.0.1
- port = PORT_S
- interface = 127.0.0.1
- allow_localhost
- hosts_try_auth = *
-
-t2:
- driver = smtp
- hosts = 127.0.0.1
- port = PORT_S
- interface = 127.0.0.1
- allow_localhost
- hosts_try_auth = *
- authenticated_sender= brian
+ driver = appendfile
+ file = DIR/test-mail/$local_part
+ user = CALLER
+
# End