for (sig = dkim_signatures; sig; sig = sig->next)
{
- g = string_catn(g, US";\\n\\tdkim=", 10);
+ g = string_catn(g, US";\n\tdkim=", 8);
if (sig->verify_status & PDKIM_VERIFY_POLICY)
g = string_append(g, 5,
authres_iprev(gstring * g)
{
if (sender_host_name)
- return string_append(g, 3, US";\\n\\tiprev=pass (", sender_host_name, US")");
+ return string_append(g, 3, US";\n\tiprev=pass (", sender_host_name, US")");
if (host_lookup_deferred)
- return string_catn(g, US";\\n\\tiprev=temperror", 21);
+ return string_catn(g, US";\n\tiprev=temperror", 19);
if (host_lookup_failed)
- return string_catn(g, US";\\n\\tiprev=fail", 15);
+ return string_catn(g, US";\n\tiprev=fail", 13);
return g;
}
if (!sender_host_authenticated)
return g;
-g = string_append(g, 4, US";\\n\\tauth=pass"
+g = string_append(g, 4, US";\n\tauth=pass"
" (", sender_host_authenticated, US") smtp.auth=", authenticated_id);
if (authenticated_sender)
g = string_append(g, 2, US" smtp.mailfrom=", authenticated_sender);
{
if (!spf_result) return g;
-return string_append(g, 4, US";\\n\\tspf=", spf_result,
+return string_append(g, 4, US";\n\tspf=", spf_result,
US" smtp.mailfrom=", expand_string(US"$sender_address_domain"));
}
# ----- Main settings -----
acl_smtp_rcpt = accept
-acl_smtp_data = accept add_header = :at_start:${authresults {$primary_hostname}}
+acl_smtp_data = check_data
# ----- Authentication -----
server_mail_auth_condition = ${if eq{$authenticated_id}{userx}{yes}}
+# ----- ACL -----
+begin acl
+
+check_data:
+ accept add_header = :at_start:${authresults {$primary_hostname}}
+
# ----- Routers -----
begin routers
acl_smtp_rcpt = accept
acl_smtp_dkim = check_dkim
-acl_smtp_data = accept logwrite = ${authresults {$primary_hostname}}
+acl_smtp_data = check_data
log_selector = +dkim_verbose
accept
.endif
+check_data:
+ accept logwrite = ${authresults {$primary_hostname}}
+
# End
>>> accept: condition test succeeded in ACL "check_dkim"
>>> end of ACL "check_dkim": ACCEPT
LOG: 10HmaX-0005vi-00 DKIM: d=test.ex s=sel c=simple/simple a=rsa-sha1 b=1024 [verification succeeded]
+>>> using ACL "check_data"
>>> processing "accept"
->>> check logwrite = Authentication-Results: myhost.test.ex;\n\tdkim=pass header.d=test.ex header.s=sel header.a=rsa-sha1
+>>> check logwrite = ${authresults {$primary_hostname}}
>>> = Authentication-Results: myhost.test.ex;
>>> dkim=pass header.d=test.ex header.s=sel header.a=rsa-sha1
LOG: 10HmaX-0005vi-00 Authentication-Results: myhost.test.ex;\n dkim=pass header.d=test.ex header.s=sel header.a=rsa-sha1
->>> accept: condition test succeeded in inline ACL
->>> end of inline ACL: ACCEPT
+>>> accept: condition test succeeded in ACL "check_data"
+>>> end of ACL "check_data": ACCEPT
LOG: 10HmaX-0005vi-00 <= CALLER@bloggs.com H=(xxx) [127.0.0.1] P=smtp S=sss DKIM=test.ex id=qwerty1234@disco-zombie.net