Hello Wietse Venema!

Wietse Venema via Postfix-users wrote in
 <4tq1wl2k2czj...@spike.porcupine.org>:
 |Wietse Venema via Postfix-users:
 |> With this in master.cf:
 |> 
 |> dkim-sign unix -     n       n       -       0       spawn
 |>         user=_postfix_xlocal argv=/tmp/s-dkim-sign
 |>         --milter-macro-sign {daemon_name},sign
 |>         --key rsa-sha256,rsa,/tmp/pri-rsa.pem
 |> 
 |> These are options to a non-Postfix program, so I need to investigate
 |> why the syntax parser is treating it as Postfix syntax.
 |
 |This behavior was introduced on 20140927, and it is partially
 |documented in the master(5) manpage.
 |
 |  Other command-line arguments
 | Specify "{" and "}" around command arguments that contain
 | whitespace (Postfix 3.0 and later). Whitespace after"{"
 | and before "}" is ignored.
 |
 |The text should have said:
 |
 |  Other command-line arguments
 | Specify "{" and "}" around command arguments that must start
 | with "{" or that must contain whitespace (Postfix 3.0 and
 | later). These outer "{" and "}" are removed from the input,
 | together with any leading or trailing whitespace.
 |
 |Basically, Postfix strips one level of {} around any command-line
 |argument that starts with "{".
 |
 |In that light, if you want "{daemon_name},sign", you need to specify
 |{{daemon_name},sign} like this:
 |
 |dkim-sign unix -       n       n       -       0       spawn
 |        user=_postfix_xlocal argv=/tmp/s-dkim-sign
 |        --milter-macro-sign {{daemon_name},sign}
 |        --key rsa-sha256,rsa,/tmp/pri-rsa.pem

I can confirm this works (of course).
It was a no-brainer from my side actually.  Though i shortly
thought about the above, but did not try because, hm, likely
having seen plenty of nested tables in examples on this list.
(And mostly i tried \ then that var thing then simply used
a resource file format.)

 |I'll update the manpage text.

Thank you.  Yes that i searched, both.  And it would have helped.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to