.include DIR/aux-var/std_conf_prefix
-primary_hostname = myhost.test.ex
# ----- Main settings -----
-trusted_users = CALLER
-bounce_return_linesize_limit = 20
+domainlist local_domains = @
+
acl_smtp_rcpt = accept
+acl_smtp_data = check_data
+trusted_users = CALLER
+
+# ----- ACL -----
+
+begin acl
+
+check_data:
+ accept logwrite = \$recipients: "$recipients"
+ logwrite = run-wrapped \$recipients: "${run{/bin/echo $recipients}}"
+ logwrite = \$value after \${run...}: '$value'
# ----- Routers -----
begin routers
-my_main_router:
- driver = manualroute
- transport = t1
- route_list = * 127.0.0.1::PORT_S
- self = send
+fail_remote_domains:
+ driver = redirect
+ domains = ! +local_domains
+ data = :fail: unrouteable mail domain "$domain"
+
+localuser:
+ driver = accept
+ check_local_user
+ transport = local_delivery
# ----- Transports -----
begin transports
-t1:
- driver = smtp
+local_delivery:
+ driver = appendfile
+ file = DIR/test-mail/$local_part_data
# End