summaryrefslogtreecommitdiff
path: root/test/confs/3700
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-02-25 15:24:26 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2018-02-25 16:30:55 +0000
commitc44ff8bea951faba4aae92b868b69e221bf7b52b (patch)
treeaba38608793c0142aa92bec91b8aafca36dfecc3 /test/confs/3700
parentb988b06146c5d16e0ca0ea86ffcf2d83938088ed (diff)
Auths: for A-R header, and SMTP auth, note the public-name not the authenticator name
Also, for TLS auth use a custom propspec
Diffstat (limited to 'test/confs/3700')
-rw-r--r--test/confs/370020
1 files changed, 17 insertions, 3 deletions
diff --git a/test/confs/3700 b/test/confs/3700
index 00a17b497..6578ecb2d 100644
--- a/test/confs/3700
+++ b/test/confs/3700
@@ -12,6 +12,8 @@ log_selector = +received_recipients +outgoing_port
acl_smtp_auth = log_call
acl_smtp_mail = check_authd
acl_smtp_rcpt = check_authd
+acl_smtp_data = ar_header
+
queue_only
queue_run_in_order
trusted_users = CALLER
@@ -36,6 +38,8 @@ check_authd:
!authenticated = *
accept
+ar_header:
+ accept add_header = :at_start:${authresults {$primary_hostname}}
# ----- Authentication -----
@@ -54,9 +58,14 @@ tls:
begin routers
-r1:
- driver = accept
- transport = ${if eq {$local_part}{smtps} {t2}{t1}}
+server_r:
+ driver = accept
+ condition = ${if eq {server}{SERVER}}
+ transport = file
+
+client_r1:
+ driver = accept
+ transport = ${if eq {$local_part}{smtps} {t2}{t1}}
# ----- Transports -----
@@ -82,4 +91,9 @@ t2:
tls_verify_certificates = DIR/aux-fixed/cert1
tls_verify_cert_hostnames = :
+file:
+ driver = appendfile
+ file = DIR/test-mail/$local_part
+ user = CALLER
+
# End